X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/751ae9fcfc70b0b48670338c2273e2eaebc388d2..e9c3c48dfa8ea8ebddb2550a1cdd9981c8874bf8:/process.cpp?ds=sidebyside diff --git a/process.cpp b/process.cpp index 8a165c1..34ddbea 100644 --- a/process.cpp +++ b/process.cpp @@ -88,7 +88,7 @@ int process::run() double now = MSG_get_clock(); if (now < next_iter_after_date) MSG_process_sleep(next_iter_after_date - now); - next_iter_after_date = MSG_get_clock() + opt::min_iter_duration; + next_iter_after_date = MSG_get_clock() + opt::min_lb_iter_duration; ++lb_iter; @@ -131,8 +131,8 @@ int process::run() double timeout; if (real_load != 0 || get_load() != prev_load_broadcast) timeout = 0.0; - else if (opt::min_iter_duration) - timeout = opt::min_iter_duration; + else if (opt::min_lb_iter_duration) + timeout = opt::min_lb_iter_duration; else timeout = 1.0; receive(timeout);