X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/e2e4118364b679f5bd7f6eae56c40ee6d039f5eb..8da825f95900484f657c27e30eafe4aacbba3af5:/process.cpp diff --git a/process.cpp b/process.cpp index eeb5d8c..92b75c9 100644 --- a/process.cpp +++ b/process.cpp @@ -82,22 +82,22 @@ process::~process() { delete compute_thread; total_load_exit += real_load; + if (opt::log_rate < 0) + return; if (opt::bookkeeping) { XBT_INFO("Final load after %d:%d iterations: %g ; expected: %g", lb_iter, comp_iter, real_load, expected_load); } else { - XBT_INFO("Final load after %d iterations: %g", - lb_iter, real_load); - if (lb_iter != comp_iter) - XBT_WARN("lb_iter (%d) and comp_iter (%d) differ!", - lb_iter, comp_iter); + XBT_INFO("Final load after %d:%d iterations: %g", + lb_iter, comp_iter, real_load); } XBT_VERB("Total computation for this process: %g", comp); } int process::run() { - XBT_INFO("Initial load: %g", real_load); + if (opt::log_rate >= 0) + XBT_INFO("Initial load: %g", real_load); XBT_VERB("Starting..."); compute_thread->start(); load_balance_loop();