X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/1bba96ae977208a57bd80c7011c2033435a64d44..61856fb5422e392a34106b1c698cf5d67a9647b4:/process.cpp diff --git a/process.cpp b/process.cpp index 6d791bd..a74b114 100644 --- a/process.cpp +++ b/process.cpp @@ -83,7 +83,7 @@ int process::run() VERB0("Starting..."); comp_iter = lb_iter = 0; while (true) { - double ld = lb_load(); + double ld = get_load(); if (ld > 0.0) { double now = MSG_get_clock(); if (now < next_iter_after_date) @@ -105,7 +105,7 @@ int process::run() print_loads(true, xbt_log_priority_debug); } - lb_load() = ld; + set_load(ld); // send load information, and load (data) if any send_all(); @@ -130,7 +130,7 @@ int process::run() // block on receiving unless there is something to compute or // to send double timeout; - if (real_load != 0 || lb_load() != prev_load_broadcast) + if (real_load != 0 || get_load() != prev_load_broadcast) timeout = 0.0; else if (opt::min_iter_duration) timeout = opt::min_iter_duration;