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