X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/7300f7a9bc748ee5c45d6139b583da4d11a6b1d4..7aedebde4d8de8a7b9f0d3ba2dc38f968c739569:/options.cpp?ds=inline diff --git a/options.cpp b/options.cpp index e9aa9b0..837aac7 100644 --- a/options.cpp +++ b/options.cpp @@ -12,10 +12,13 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(main); #include "loba_simple.h" #include "loba_fairstrategy.h" #include "loba_makhoul.h" +#include "loba_makhoul2.h" #include "misc.h" #include "options.h" +#define DATA_DESCR_WIDTH 42 + namespace opt { // Constants @@ -72,6 +75,8 @@ namespace opt { loba_fairstrategy); NOL_INSERT("makhoul", "balance with Makhoul's PhD algorithm", loba_makhoul); + NOL_INSERT("makhoul2", "balance with Makhoul's source code", + loba_makhoul2); NOL_INSERT("none", "no load-balancing (for testing only)", process); NOL_INSERT("simple", "balance with least loaded neighbor", @@ -135,10 +140,9 @@ const char* opt_helper::on_off(bool b) const char* opt_helper::descr(const char* str) { - const int descr_width = 40; std::string& res = descr_str; res = str; - res.resize(descr_width, '.'); + res.resize(DATA_DESCR_WIDTH, '.'); return res.c_str(); }