Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[FIX] Fix broken commit 770f1cc88b3b35c90e505470753b70b95a326b91
[simgrid.git] / 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()