+ double load_ratio =
+ 100.0 * std::fabs(real_load / total_load_average - 1.0);
+ if (convergence >= 0.0) {
+ if (load_ratio > opt::avg_load_ratio) {
+ XBT_VERB("current load has diverged: %g (%.4g%%)",
+ real_load, load_ratio);
+ convergence = -1.0;
+ }
+ } else {
+ if (load_ratio <= opt::avg_load_ratio) {
+ XBT_VERB("current load has converged: %g (%.4g%%)",
+ real_load, load_ratio);
+ convergence = MSG_get_clock();
+ }
+ }
+