X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6fc3119abd6191409d110f9ba3625da1d13c1d1a..d15ba525d67b4ee1ae82e1ca1d71cc859e43998c:/examples/amok/saturate/saturate.c diff --git a/examples/amok/saturate/saturate.c b/examples/amok/saturate/saturate.c index 909b132086..6734088cf9 100644 --- a/examples/amok/saturate/saturate.c +++ b/examples/amok/saturate/saturate.c @@ -39,7 +39,7 @@ int sensor (int argc,char *argv[]) { gras_os_sleep(2); /* let the master get ready */ master = gras_socket_client_from_string(argv[1]); - amok_pm_group_join(master,"saturate"); + amok_pm_group_join(master,"saturate",-1); amok_pm_mainloop(600); gras_socket_close(mysock); @@ -199,7 +199,7 @@ static void full_fledged_saturation(int argc, char*argv[]) { bw=amok_bw_matrix(peers,buf_size,msg_size,msg_amount,min_duration); INFO2("Did all BW tests in %ld sec (%.2f simulated(?) sec)", - time(NULL)-begin,gras_os_time()-begin_simulated); + (long int) (time(NULL)-begin),gras_os_time()-begin_simulated); /* Do the test with saturation */ bw_sat=xbt_new(double,nb_peers*nb_peers); @@ -243,7 +243,7 @@ static void full_fledged_saturation(int argc, char*argv[]) { amok_bw_saturate_stop(h1->name,h1->port,&time1,&bw1); INFO2("Did an iteration on saturation pair in %ld sec (%.2f simulated sec)", - time(NULL)-begin, gras_os_time()-begin_simulated); + (long int) (time(NULL)-begin), gras_os_time()-begin_simulated); INFO2("the duration of the experiment >>>>> %.3f sec (%.3f bandwidth)",time1,bw1); } }