diff --git a/philo.c b/philo.c index e4e3c60..3f5f2f0 100644 --- a/philo.c +++ b/philo.c @@ -87,7 +87,7 @@ void *philo_routine(void *arg) philo = arg; data = philo->data; print_thinking(philo); - usleep((philo->id * (data->life_expectency / data->nb_philos)) * 1000); + usleep((philo->id % 2) * (data->eat_time) * 1000); while (true) { if (check(philo, data))