Skip to content

Commit

Permalink
correct FANCY printing info on nr of meals being eaten; add fancy pri…
Browse files Browse the repository at this point in the history
…ntf example to assets
  • Loading branch information
alx-sch committed Oct 13, 2024
1 parent 67ae330 commit 48709ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions philo/src/utils/1_print_action.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: aschenk <aschenk@student.42berlin.de> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/05 13:49:37 by aschenk #+# #+# */
/* Updated: 2024/10/12 15:32:51 by aschenk ### ########.fr */
/* Updated: 2024/10/13 17:18:25 by aschenk ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -77,7 +77,7 @@ static void print_fancy(t_ull timestamp, t_philo *philo, t_action action)
(void)printf("→🥄\thas taken their fork\t(%d) right\n",
philo->right_fork->fork_id);
else if (action == EAT)
(void)printf("🍝\tis eating\t\t(%d. meal)\n", philo->meals_eaten + 1);
(void)printf("🍝\tis eating\t\t(%d. meal)\n", philo->meals_eaten);
else if (action == SLEEP)
(void)printf("💤\tis sleeping\n");
else if (action == THINK)
Expand Down

0 comments on commit 48709ec

Please sign in to comment.