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

Private GIT Repository
Correctly initialize members for deployment_generator::host_parameters.
[loba.git] / loba_makhoul.cpp
index 67a2359c569cf18f669ac17193125e0dfe2cdb36..7309e6c52beccc33572a1b0c744ea798cf84ac7b 100644 (file)
@@ -5,16 +5,9 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba);
 
 #include "loba_makhoul.h"
 
-class compare {
-public:
-    bool operator()(const neighbor*a, const neighbor*b) {
-        return a->get_load() < b->get_load();
-    }
-};
-
 void loba_makhoul::load_balance()
 {
-    std::sort(pneigh.begin(), pneigh.end(), compare());
+    std::sort(pneigh.begin(), pneigh.end(), pneigh_load_less());
 
     print_loads_p(false, xbt_log_priority_debug);