From: Arnaud Giersch Date: Tue, 25 Jan 2011 10:55:12 +0000 (+0100) Subject: Partially revert "modif simple" X-Git-Tag: v0.1~188^2~12 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/3bbce140c762cb8f3aaf9526e835aaa72cdec632?ds=inline;hp=-c Partially revert "modif simple" This reverts commit ffea735548f5d4940dae32d8071a2676f6716ad0. Conflicts: loba_simple.cpp --- 3bbce140c762cb8f3aaf9526e835aaa72cdec632 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);