X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/c3d3baabd62916d605d97758bf0f08ccfe479e01..eed18917aff57d3045fdf6cfecbf6fb99d1e9c7b:/main.cpp?ds=sidebyside diff --git a/main.cpp b/main.cpp index 89e9bec..e148574 100644 --- a/main.cpp +++ b/main.cpp @@ -24,6 +24,7 @@ XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(main); #include "misc.h" #include "options.h" #include "process.h" +#include "simgrid_features.h" #include "statistics.h" #include "synchro.h" #include "timer.h" @@ -188,12 +189,12 @@ static void install_signal_handler() #define PR_VALUE(descr, format, ...) \ XBT_INFO("| %.*s: " format, DATA_DESCR_WIDTH, \ - descr ".................................................", \ + descr " ................................................", \ __VA_ARGS__) #define PR_STATS(descr, st) \ XBT_INFO("| %.*s: %g / %g / %g", DATA_DESCR_WIDTH, \ - descr " (sum/avg/dev)...................................", \ + descr " (sum/avg/dev) ..................................", \ st.get_sum(), st.get_mean(), st.get_stddev()) int main(int argc, char* argv[]) @@ -202,7 +203,7 @@ int main(int argc, char* argv[]) double simulated_time = -1.0; timestamp elapsed_time(timestamp::wallclock_time); timestamp simulation_time(timestamp::cpu_time); - MSG_error_t res; + msg_error_t res; elapsed_time.start(); simulation_time.start(); @@ -219,7 +220,7 @@ int main(int argc, char* argv[]) } // Initialize some MSG internal data. - MSG_global_init(&argc, argv); + MSG_init(&argc, argv); install_signal_handler(); // Parse global parameters @@ -233,7 +234,7 @@ int main(int argc, char* argv[]) "Compiled on " << version::date << "\n\n"; if (!parse_res || opt::help_requested) opt::usage(); - MSG_clean(); + res = MSG_clean(); exit(parse_res ? EXIT_NO_FAILURE : EXIT_FAILURE_ARGS); } XBT_INFO("%s v%s (%s)", opt::program_name.c_str(), version::num.c_str(),