X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/64c0f9cb9f413f8ba6590688be594c41ea257b6c..7044bfa5ea66b3295c3290f71b452d03c8ba222e:/loba_2besteffort.cpp?ds=inline diff --git a/loba_2besteffort.cpp b/loba_2besteffort.cpp index 820c7a5..82fcd36 100644 --- a/loba_2besteffort.cpp +++ b/loba_2besteffort.cpp @@ -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; - 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()); }