From e874ad94a31a8259b8eb7ad2865767c081bcd279 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 3 Jan 2021 14:04:22 +0100 Subject: Fixing philo_one/philo_two dying by sleeping more when checking the death, Fixing timestamp in the wrong order in philo_three --- philo_two/src/routine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'philo_two/src/routine.c') diff --git a/philo_two/src/routine.c b/philo_two/src/routine.c index 1066e97..3c04817 100644 --- a/philo_two/src/routine.c +++ b/philo_two/src/routine.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 23:00:07 by cacharle #+# #+# */ -/* Updated: 2021/01/02 11:59:27 by cacharle ### ########.fr */ +/* Updated: 2021/01/03 12:57:27 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -49,7 +49,7 @@ void *routine_death(t_philo *arg) while (current - arg->time_last_eat < arg->conf->timeout_death) { current = h_time_now(); - usleep(200); + usleep(1000); } event_die(arg); return (NULL); -- cgit