From ffea735548f5d4940dae32d8071a2676f6716ad0 Mon Sep 17 00:00:00 2001 From: Raphael Couturier Date: Fri, 17 Dec 2010 15:52:44 +0100 Subject: [PATCH] modif simple --- loba_simple.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loba_simple.cpp b/loba_simple.cpp index 2cf613f..d44a1de 100644 --- a/loba_simple.cpp +++ b/loba_simple.cpp @@ -29,9 +29,10 @@ double loba_simple::load_balance(double my_load) } if (imin != -1) { // found someone - double balance = (my_load - max) / 2; + double balance = (my_load - min) / 2; DEBUG6("%d:%g %d:%g %g %g", imin, min, imax, max, my_load, balance); pneigh[imin]->set_to_send(balance); + pneigh[imin]->set_load(min+balance); return balance; } else { return 0.0; -- 2.39.5