X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/36f2b9a493e14c00fec410c84dfaff6a654ce929..e05a6b2176b2111c65ff5464a4b25099f9fdfb12:/loba_fairstrategy.cpp diff --git a/loba_fairstrategy.cpp b/loba_fairstrategy.cpp index ba5a7d9..8790892 100644 --- a/loba_fairstrategy.cpp +++ b/loba_fairstrategy.cpp @@ -21,7 +21,7 @@ double loba_fairstrategy::load_balance(double my_load) { std::sort(pneigh.begin(), pneigh.end(), compare()); - print_loads_p(); + //print_loads_p(); double sum_sent=0; bool found=true; @@ -34,9 +34,9 @@ double loba_fairstrategy::load_balance(double my_load) 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()); + //INFO1("sent to %s",pneigh[i]->get_name()); my_load--; sum_sent++; }