X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/825abbb3bde6c35ab1d1cdfba25fba4be5dcea2f..9380d7c32eed77c15a12068a4c37d78705271837:/main.cpp diff --git a/main.cpp b/main.cpp index 3a47b92..4e8864c 100644 --- a/main.cpp +++ b/main.cpp @@ -47,7 +47,7 @@ static int simulation_main(int argc, char* argv[]) proc = opt::loba_algorithms.new_instance(opt::loba_algo, argc, argv); result = proc->run(); comps.push(proc->get_comp()); - loads.push(proc->get_load()); + loads.push(proc->get_real_load()); delete proc; } catch (std::invalid_argument& e) { @@ -65,7 +65,7 @@ static void check_for_lost_load() double lost_ratio = 100.0 * lost / total_init; if (lost_ratio < -opt::load_ratio_threshold) CRITICAL2("Gained load at exit! %g (%g%%) <============", - lost, lost_ratio); + -lost, -lost_ratio); else if (lost_ratio > opt::load_ratio_threshold) CRITICAL2("Lost load at exit! %g (%g%%) <============", lost, lost_ratio);