From 41bd1149d8a1663ddccdaae80407a8efd6b666b7 Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Tue, 25 Apr 2023 15:01:54 +0000 Subject: [PATCH] fix: time mix --- print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print.c b/print.c index f151e00..f260cba 100644 --- a/print.c +++ b/print.c @@ -11,13 +11,13 @@ static void print(t_data *data, size_t id, char *str) size_t time; bool stop; - time = get_time(); pthread_mutex_lock(&data->print_mutex); pthread_mutex_lock(&data->stop_mutex); stop = data->stop; pthread_mutex_unlock(&data->stop_mutex); if (stop == false) { + time = get_time(); ft_putnum(time, 7); ft_putchar(' '); ft_putnum(id + 1, 3);