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

Private GIT Repository
Also print average and deviation for times of convergence.
[loba.git] / loba_2besteffort.cpp
index 820c7a5f813a6a0d2deba0b4a6c72a691506400c..82fcd3659abbe1454367c4dca75f67c8f68197c6 100644 (file)
@@ -31,8 +31,8 @@ void loba_2besteffort::load_balance()
         // don't continue if get_load() <= mean, or pneigh[i]->get_load >= mean
         if (transfer <= 0.0)
             break;
         // don't continue if get_load() <= mean, or pneigh[i]->get_load >= mean
         if (transfer <= 0.0)
             break;
-        if (opt::option_x)
-            transfer /= opt::option_x; // HACK!!!
+        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());
     }
         send(pneigh[i], transfer);
         XBT_DEBUG("sent %g to %s", transfer, pneigh[i]->get_name());
     }