From 67bdf5427542ebb33da6978c6ae422a763ea0ab3 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Wed, 7 Feb 2018 14:22:20 +0100 Subject: [PATCH] [HostLoad] Load is currently 0 because of integer division. Fix that. --- src/surf/plugins/host_load.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surf/plugins/host_load.cpp b/src/surf/plugins/host_load.cpp index 9b2a88087a..ebe41f4317 100644 --- a/src/surf/plugins/host_load.cpp +++ b/src/surf/plugins/host_load.cpp @@ -76,7 +76,7 @@ void HostLoad::update() double HostLoad::getCurrentLoad() { - return current_flops / (host->getSpeed() * host->getCoreCount()); + return current_flops / static_cast(host->getSpeed() * host->getCoreCount()); } double HostLoad::getAverageLoad() -- 2.20.1