Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill defaultlog
[simgrid.git] / examples / gras / timer / timer.c
index 45cd18b..8de543f 100644 (file)
@@ -55,7 +55,7 @@ int client(int argc,char *argv[]) {
   int cpt;
   my_globals *globals;
 
-  gras_init(&argc,argv,NULL);
+  gras_init(&argc,argv);
   globals=gras_userdata_new(my_globals);
   globals->still_to_do = -1;
 
@@ -66,7 +66,7 @@ int client(int argc,char *argv[]) {
   gras_timer_delay(REPEAT_INTERVAL,delayed_action);
 
   INFO1("[%.0f] Have a rest", gras_os_time());  
-  gras_os_sleep(DELAY_INTERVAL / 2.0, 0);
+  gras_os_sleep(DELAY_INTERVAL / 2.0);
    
   INFO1("[%.0f] Canceling the delayed_action.",gras_os_time());
   gras_timer_cancel_delay(REPEAT_INTERVAL,delayed_action);