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

Private GIT Repository
Count supernumerary comp. iterations.
[loba.git] / loba_besteffort.cpp
index fa7273075397ebe1b673850c560e31f219c7a947..f3a8c33ef32fca74f50e5aed8a3d635a8b0c14d0 100644 (file)
@@ -26,6 +26,8 @@ void loba_besteffort::load_balance()
     double mean = sum / (bound + 1);
     for (unsigned i = 0 ; i < bound ; ++i) {
         double transfer = mean - pneigh[i]->get_load();
+        if (opt::loba_best_divisor)
+            transfer /= opt::loba_best_divisor;
         send(pneigh[i], transfer);
         XBT_DEBUG("sent %g to %s", transfer, pneigh[i]->get_name());
     }