Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[DVFS] Fix getAverageLoad(): Use theor_max_flops
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 15 Feb 2018 14:15:48 +0000 (15:15 +0100)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 1 Mar 2018 12:42:50 +0000 (13:42 +0100)
src/surf/plugins/host_load.cpp

index e22ceb6..011b1fd 100644 (file)
@@ -116,7 +116,7 @@ double HostLoad::getIdleTime() {
 
 double HostLoad::getAverageLoad()
 {
-  return getComputedFlops() / (host->getSpeed() * host->getCoreCount() * (surf_get_clock() - last_reset));
+  return getComputedFlops() / theor_max_flops;
 }
 
 double HostLoad::getComputedFlops()