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

Private GIT Repository
new tests
[loba.git] / loba_2besteffort.cpp
index 967476e0309a7e8640f98a2d106f9c0dc93120cb..820c7a5f813a6a0d2deba0b4a6c72a691506400c 100644 (file)
@@ -31,6 +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!!!
         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());
     }