From: Arnaud Giersch Date: Fri, 25 Feb 2011 14:54:39 +0000 (+0100) Subject: Minor cleanups. X-Git-Tag: v0.1~95 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/1f1654801b021f79ab05c5a9d0dddc766c423d17?ds=sidebyside Minor cleanups. --- diff --git a/loba_fairstrategy.cpp b/loba_fairstrategy.cpp index 5530f5a..4054729 100644 --- a/loba_fairstrategy.cpp +++ b/loba_fairstrategy.cpp @@ -6,14 +6,11 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba); void loba_fairstrategy::load_balance() { - const double delta = 0.001; - pneigh_sort_by_load(std::greater()); - print_loads_p(false, xbt_log_priority_debug); + const double delta = 0.001; bool found = true; - while (found) { found = false; for (unsigned i = 0 ; i < pneigh.size() ; ++i) { diff --git a/loba_makhoul.cpp b/loba_makhoul.cpp index fc25653..cfc9483 100644 --- a/loba_makhoul.cpp +++ b/loba_makhoul.cpp @@ -7,7 +7,6 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba); void loba_makhoul::load_balance() { pneigh_sort_by_load(std::less()); - print_loads_p(false, xbt_log_priority_debug); double alpha = 1.0 / (pneigh.size() + 1.0); diff --git a/loba_makhoul2.cpp b/loba_makhoul2.cpp index d0cf20a..e6f629d 100644 --- a/loba_makhoul2.cpp +++ b/loba_makhoul2.cpp @@ -9,7 +9,6 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba); void loba_makhoul2::load_balance() { pneigh_sort_by_load(std::less()); - print_loads_p(false, xbt_log_priority_debug); double alpha = 1.0 / (pneigh.size() + 1.0);