From: couturie Date: Sun, 30 Jan 2011 18:47:46 +0000 (+0100) Subject: new fair X-Git-Tag: v0.1~186 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/bf6f3239b1c6f8b6704bfd0474b721e803dce588?hp=efedb4042d22e29ef6e63aff34719fcc50af0c06 new fair --- diff --git a/loba_fairstrategy.cpp b/loba_fairstrategy.cpp index 7e02a21..f4dbb28 100644 --- a/loba_fairstrategy.cpp +++ b/loba_fairstrategy.cpp @@ -29,9 +29,9 @@ void loba_fairstrategy::load_balance() while (found) { found = false; for (unsigned i = 0 ; i < pneigh.size() ; ++i) { - if (pneigh[i]->get_load() <= get_load() - 2) { + if (pneigh[i]->get_load() <= get_load() - .002) { found = true; - send(pneigh[i], 1); + send(pneigh[i], .001); DEBUG1("sent to %s", pneigh[i]->get_name()); } }