From ecd8be4b1fa0d63c58d028914b29daa1fc0fb9e3 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Thu, 26 Jul 2018 09:48:37 +0200 Subject: [PATCH] [HostLoad] Elaborate on comment --- src/plugins/host_load.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.20.1