From b940b4692400a28d6734dd57accdfda849a85f74 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Fri, 5 May 2023 16:59:36 +0000 Subject: [PATCH] ?fix --- data.c | 3 ++- time.c | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/data.c b/data.c index 164c3f4..48ac929 100644 --- a/data.c +++ b/data.c @@ -6,7 +6,7 @@ /* By: cchauvet nb_philos) pthread_mutex_destroy(&data->forks[i]); diff --git a/time.c b/time.c index 7392b5a..0a5d781 100644 --- a/time.c +++ b/time.c @@ -6,7 +6,7 @@ /* By: cchauvet life_expectency - philo->last_eat - time); if (value > data->eat_time) value = data->eat_time; - // printf("\n%zu: time: %zu, last: %zu, eat: %zu, expectencty: %zu, value: %zu\n", philo->id + 1, time, philo->last_eat, data->eat_time, data->life_expectency, value); return (value); } @@ -52,7 +51,6 @@ size_t get_time_sleep(t_philo *philo, t_data *data) value = (data->life_expectency - (time - philo->last_eat)); if (value > data->sleep_time) value = data->sleep_time; - // printf("\n%zu: time: %zu, last: %zu, sleep: %zu, expectencty: %zu, value: %zu\n", philo->id + 1, time, philo->last_eat, data->sleep_time, data->life_expectency, value); return (value); }