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); }