X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/fb7c087879f5cfc2657a4fc04847106b5f75c122..0fecd0fc8c395fa209a8a9bbd32c3a88c3281f49:/process.cpp diff --git a/process.cpp b/process.cpp index 880bbd0..0c3f784 100644 --- a/process.cpp +++ b/process.cpp @@ -84,20 +84,18 @@ process::~process() 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:%d iterations: %g", - lb_iter, comp_iter, real_load); - } + XBT_INFO("Final load after %d:%d iterations: %g", + lb_iter, comp_iter, real_load); + XBT_VERB("Expected load was: %g", expected_load); XBT_VERB("Total computation for this process: %g", comp); } int process::run() { - if (opt::log_rate >= 0) + if (opt::log_rate >= 0) { XBT_INFO("Initial load: %g", real_load); + XBT_VERB("Initial expected load: %g", expected_load); + } XBT_VERB("Starting..."); mutex.acquire(); lb_thread->start(); @@ -130,12 +128,8 @@ void process::load_balance_loop() } if (opt::log_rate && lb_iter % opt::log_rate == 0) { - if (opt::bookkeeping) - XBT_INFO("(%u:%u) current load: %g ; expected: %g", - lb_iter, comp_iter, real_load, expected_load); - else - XBT_INFO("(%u:%u) current load: %g", - lb_iter, comp_iter, real_load); + XBT_INFO("(%u:%u) current load: %g", lb_iter, comp_iter, real_load); + XBT_VERB("... expected load: %g", expected_load); } if (get_load() > 0.0)