]> AND Private Git Repository - loba.git/commitdiff
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Variable delay is defined, why not using it?
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 18 Jan 2011 21:19:51 +0000 (22:19 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 18 Jan 2011 21:19:51 +0000 (22:19 +0100)
process.cpp

index d3d92268c524f87ef67d6db3b4c19d3dfc1073c0..95ba1f9a24b4276528a5556cc23a7d69eba9ccca 100644 (file)
@@ -77,7 +77,7 @@ int process::run()
             if (now < next_iter_after_date){
                 double delay = next_iter_after_date - now;
                 DEBUG1("sleeping for %g s", delay);
-                MSG_process_sleep(next_iter_after_date - now);
+                MSG_process_sleep(delay);
             }
             next_iter_after_date = MSG_get_clock() + opt::min_iter_duration;
         }