X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/29d6013f6a85f43d958add37f8317cf038cf335b..1bba96ae977208a57bd80c7011c2033435a64d44:/process.h?ds=inline diff --git a/process.h b/process.h index 3978e3a..8f96fd8 100644 --- a/process.h +++ b/process.h @@ -28,7 +28,7 @@ public: virtual ~process(); double get_comp() const { return comp; } - double get_load() const { return load; } + double get_real_load() const { return real_load; } int run(); @@ -74,14 +74,14 @@ private: double prev_load_broadcast; // used to ensure that we do not send // a same information messages - double load; // current load + double real_load; // current load double expected_load; // expected load in bookkeeping mode - double& lb_load() { return opt::bookkeeping ? expected_load : load; } + double& lb_load() { return opt::bookkeeping ? expected_load : real_load; } // The load balancing algorithm comes here... // Parameter "my_load" is the load to take into account for myself - // (may be load or expected load). + // (may be real load or expected load). // Returns the total load sent to neighbors. virtual double load_balance(double my_load);