3 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba);
5 #include "loba_fairstrategy.h"
7 void loba_fairstrategy::load_balance()
9 pneigh_sort_by_load(std::greater<double>());
10 print_loads_p(false, xbt_log_priority_debug);
12 const double delta = 0.001;
16 for (unsigned i = 0 ; i < pneigh.size() ; ++i) {
17 if (pneigh[i]->get_load() <= get_load() - 2 * delta) {
19 send(pneigh[i], delta);
20 XBT_DEBUG("sent to %s", pneigh[i]->get_name());