From: Christian Heinrich Date: Thu, 26 Jul 2018 07:48:37 +0000 (+0200) Subject: [HostLoad] Elaborate on comment X-Git-Tag: v3_21~355^2~17 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ecd8be4b1fa0d63c58d028914b29daa1fc0fb9e3 [HostLoad] Elaborate on comment --- diff --git a/src/plugins/host_load.cpp b/src/plugins/host_load.cpp index 742012933b..6185149032 100644 --- a/src/plugins/host_load.cpp +++ b/src/plugins/host_load.cpp @@ -72,8 +72,8 @@ void HostLoad::update() { double now = surf_get_clock(); - /* Current flop per second computed by the cpu; current_flops = k * pstate_speed_in_flops, k @in {0, 1, ..., cores} - * number of active cores */ + /* Current flop per second computed by the cpu; current_flops = k * pstate_speed_in_flops, k @in {0, 1, ..., cores-1} + * designates number of active cores; will be 0 if CPU is currently idle */ current_flops_ = host_->pimpl_cpu->get_constraint()->get_usage(); /* flops == pstate_speed * cores_being_currently_used */