From 3bbce140c762cb8f3aaf9526e835aaa72cdec632 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Tue, 25 Jan 2011 11:55:12 +0100 Subject: [PATCH 1/1] Partially revert "modif simple" This reverts commit ffea735548f5d4940dae32d8071a2676f6716ad0. Conflicts: loba_simple.cpp --- loba_simple.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loba_simple.cpp b/loba_simple.cpp index 5702fba..26622c8 100644 --- a/loba_simple.cpp +++ b/loba_simple.cpp @@ -29,7 +29,7 @@ double loba_simple::load_balance(double my_load) } if (imin != -1) { // found someone - double balance = (my_load - min) / 2; + double balance = (my_load - max) / 2; DEBUG6("%d:%g %d:%g %g %g", imin, min, imax, max, my_load, balance); pneigh[imin]->set_to_send(balance); pneigh[imin]->add_load(balance); -- 2.39.5