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

Private GIT Repository
Variable delay is defined, why not using it?
[loba.git] / 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);
             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;
         }
             }
             next_iter_after_date = MSG_get_clock() + opt::min_iter_duration;
         }