Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[HostLoad] Load is currently 0 because of integer division. Fix that.
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 7 Feb 2018 13:22:20 +0000 (14:22 +0100)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Tue, 13 Feb 2018 18:51:06 +0000 (19:51 +0100)
src/surf/plugins/host_load.cpp

index 9b2a880..ebe41f4 100644 (file)
@@ -76,7 +76,7 @@ void HostLoad::update()
 
 double HostLoad::getCurrentLoad()
 {
-  return current_flops / (host->getSpeed() * host->getCoreCount());
+  return current_flops / static_cast<double>(host->getSpeed() * host->getCoreCount());
 }
 
 double HostLoad::getAverageLoad()