Skip to content

Commit

Permalink
applying PHILOS_LIMIT
Browse files Browse the repository at this point in the history
  • Loading branch information
biralavor committed Nov 5, 2024
1 parent 3aab4c6 commit ff43339
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion philo/src/03.parsing.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: umeneses <umeneses@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/22 16:16:16 by umeneses #+# #+# */
/* Updated: 2024/11/04 18:17:12 by umeneses ### ########.fr */
/* Updated: 2024/11/05 11:18:18 by umeneses ### ########.fr */
/* */
/* ************************************************************************** */

Expand All @@ -25,6 +25,8 @@ void table_parsing(t_table *table, char **av)
table->set.total_meals = ft_atoi_long_int(av[5]);
else
table->set.total_meals = -1;
if (table->set.total_philos > PHILOS_LIMIT)
table->set.total_philos = PHILOS_LIMIT;
if (table->set.time_to_die < 6e4
|| table->set.time_to_eat < 6e4
|| table->set.time_to_sleep < 6e4)
Expand Down

0 comments on commit ff43339

Please sign in to comment.