From 716477bf554cef03903ac57186255d630a927356 Mon Sep 17 00:00:00 2001 From: "remi.greub" <remi.greub@hes-so.ch> Date: Thu, 10 Apr 2025 20:41:07 +0200 Subject: [PATCH] modif de printf, GET --- G17_bykes/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/G17_bykes/main.c b/G17_bykes/main.c index 72610ca..264000f 100644 --- a/G17_bykes/main.c +++ b/G17_bykes/main.c @@ -165,7 +165,7 @@ void *habitants(void *arg){ //waits for a bike in site i //if(hab->i_site==4){ pthread_mutex_lock(&mutex[hab->i_site]); - printf("(GET) person %d starts from terminal %d (%d bykes, %d persons waiting, semVal : %d)\n", hab->num_thread, hab->i_site, sites[hab->i_site].nb_bikesParked, sites[j].nb_P_waiting, val);//sites[hab->i_site].nb_P_waiting); + printf("(GET) person %d starts from terminal %d (%d bykes, %d persons waiting, semVal : %d)\n", hab->num_thread, hab->i_site, sites[hab->i_site].nb_bikesParked, sites[hab->i_site].nb_P_waiting, val);//sites[hab->i_site].nb_P_waiting); pthread_mutex_unlock(&mutex[hab->i_site]); //} -- GitLab