]> AND Private Git Repository - loba.git/blobdiff - loba_makhoul3.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Move loading of atomic vs. cstdatomic in atomic_compat.h.
[loba.git] / loba_makhoul3.cpp
index 9517002082774760575965bb1387ae2ea7e25ae8..fd06d223621b86a6ef72ee0988e5efafdba00d4a 100644 (file)
@@ -9,10 +9,10 @@ void loba_makhoul3::load_balance()
     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();