Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reduce amount of login for the new default loop count
[simgrid.git] / examples / gras / tokenS / tokenS.c
index 735c236..d22444c 100644 (file)
@@ -54,7 +54,7 @@ static int node_cb_stoken_handler(gras_socket_t  expeditor,
   int supersteps = 1;
   if (NBLOOPS >= 1000) {
     supersteps = 100;
   int supersteps = 1;
   if (NBLOOPS >= 1000) {
     supersteps = 100;
-  } else if (NBLOOPS > 100) {
+  } else if (NBLOOPS >= 100) {
     supersteps = 10;
   } 
   if (globals->create && (! (globals->remaining_loop % supersteps))) {
     supersteps = 10;
   } 
   if (globals->create && (! (globals->remaining_loop % supersteps))) {