Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Yeah, right. I'm plainly stupid and cannot come up with the right boolean
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 29 May 2006 12:29:43 +0000 (12:29 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 29 May 2006 12:29:43 +0000 (12:29 +0000)
expression in less than 325325 iterations. So what?

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2314 48e7efb5-ca39-0410-a469-dd3cf9ba447f

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;