pneigh_sort_by_load(std::less<double>());
print_loads_p(false, xbt_log_priority_debug);
- int nb_less_loaded=0;
- for (unsigned i = 0 ; i < pneigh.size() ; ++i) {
- nb_less_loaded+=(pneigh[i]->get_load()<=get_load());
- }
+ int nb_less_loaded = 0;
+ for (unsigned i = 0 ; i < pneigh.size() ; ++i) {
+ nb_less_loaded += (pneigh[i]->get_load() <= get_load());
+ }
double alpha = 1.0 / (nb_less_loaded );
double my_load = get_load();