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

Private GIT Repository
Distinguish lb_iter and comp_iter.
[loba.git] / loba_fairstrategy.cpp
index ba5a7d9f12720f90050a5fa0e0517bd8ba6e05b9..4573776936e660dbdf29370c224f9e538b808012 100644 (file)
@@ -34,7 +34,7 @@ double loba_fairstrategy::load_balance(double my_load)
                 continue;
             if (l < my_load+2) {
                 found=true;
                 continue;
             if (l < my_load+2) {
                 found=true;
-                pneigh[i]->set_load(l+1);
+                pneigh[i]->add_load(1);
                 pneigh[i]->add_to_send(1);
                 INFO1("sent to %s",pneigh[i]->get_name());
                 my_load--;
                 pneigh[i]->add_to_send(1);
                 INFO1("sent to %s",pneigh[i]->get_name());
                 my_load--;