X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/64c0f9cb9f413f8ba6590688be594c41ea257b6c..28a30c9d25c9555dd21935653d2386653b0f3fe8:/loba_besteffort.cpp?ds=inline diff --git a/loba_besteffort.cpp b/loba_besteffort.cpp index 22343e0..f3a8c33 100644 --- a/loba_besteffort.cpp +++ b/loba_besteffort.cpp @@ -26,8 +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::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()); }