]> AND Private Git Repository - loba.git/commitdiff
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
new fair
authorcouturie <couturie@carcariass.(none)>
Sun, 30 Jan 2011 18:47:46 +0000 (19:47 +0100)
committercouturie <couturie@carcariass.(none)>
Sun, 30 Jan 2011 18:47:46 +0000 (19:47 +0100)
loba_fairstrategy.cpp

index 7e02a21361c646ea6aabc18e084d7233cc2ab219..f4dbb28659726ae404c15870f378c476ab079931 100644 (file)
@@ -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());
             }
         }