From: Christian Heinrich Date: Thu, 26 Jul 2018 09:12:55 +0000 (+0200) Subject: [HostLoad] Update comments + add debug statement X-Git-Tag: v3_21~355^2~16 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/2119e6533d557066a41c25915f77b2e64a5ba812 [HostLoad] Update comments + add debug statement --- diff --git a/src/plugins/host_load.cpp b/src/plugins/host_load.cpp index 6185149032..5387b3c214 100644 --- a/src/plugins/host_load.cpp +++ b/src/plugins/host_load.cpp @@ -52,7 +52,8 @@ private: double last_updated_ = 0; double last_reset_ = 0; /** - * current_speed each core is running at right now + * current_speed each core is running at; we need to store this as the speed + * will already have changed once we get notified */ double current_speed_ = 0; /** @@ -82,6 +83,7 @@ void HostLoad::update() if (current_flops_ == 0) { idle_time_ += (now - last_updated_); total_idle_time_ += (now - last_updated_); + XBT_DEBUG("[%s]: Currently idle -> Added %f seconds to idle time (totaling %fs)", host_->get_cname(), (now - last_updated_), idle_time_); } theor_max_flops_ += current_speed_ * host_->get_core_count() * (now - last_updated_);