Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[FIX] Fix broken commit 770f1cc88b3b35c90e505470753b70b95a326b91
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 5 Apr 2017 12:50:44 +0000 (14:50 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 5 Apr 2017 12:50:56 +0000 (14:50 +0200)
src/surf/plugins/host_load.cpp

index dcf86a2..623ae67 100644 (file)
@@ -35,6 +35,7 @@ public:
 
   double getCurrentLoad();
   double getComputedFlops();
+  double getAverageLoad();
   void update();
   void reset();
 
@@ -79,7 +80,7 @@ double HostLoad::getCurrentLoad()
 
 double HostLoad::getAverageLoad()
 {
-  return getComputedFlops() / (host->speed() * host->coreCount() * (surf_get_clock() - last_reset))
+  return getComputedFlops() / (host->speed() * host->coreCount() * (surf_get_clock() - last_reset));
 }
 
 double HostLoad::getComputedFlops()