From bf6f3239b1c6f8b6704bfd0474b721e803dce588 Mon Sep 17 00:00:00 2001 From: couturie Date: Sun, 30 Jan 2011 19:47:46 +0100 Subject: [PATCH] new fair --- loba_fairstrategy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); } } -- 2.39.5