Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Yeah, right. I'm plainly stupid and cannot come up with the right boolean
[simgrid.git] / src / amok / Bandwidth / saturate.c
index b43c60e..c3b57f9 100644 (file)
@@ -186,7 +186,7 @@ void amok_bw_saturate_begin(const char* to_name,unsigned int to_port,
     elapsed=gras_os_time()-start;
     VERB2("elapsed %f duration %f",elapsed, duration);
 
-  } while (saturate_further && (duration!=0 && elapsed < duration));
+  } while (saturate_further && (duration==0 || elapsed < duration));
 
   bw = ((double)(packet_sent*msg_size)) / elapsed;