X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/e101542b2694675251352f799e903d171a17b1a5..fc4b169f4e9a3b0e8c8ae807fdb4c7cf8d3e6507:/loba_2besteffort.cpp?ds=sidebyside diff --git a/loba_2besteffort.cpp b/loba_2besteffort.cpp index 967476e..820c7a5 100644 --- a/loba_2besteffort.cpp +++ b/loba_2besteffort.cpp @@ -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; + if (opt::option_x) + transfer /= opt::option_x; // HACK!!! send(pneigh[i], transfer); XBT_DEBUG("sent %g to %s", transfer, pneigh[i]->get_name()); }