From: Christian Heinrich Date: Thu, 15 Feb 2018 14:15:48 +0000 (+0100) Subject: [DVFS] Fix getAverageLoad(): Use theor_max_flops X-Git-Tag: v3.19~167 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/ce045b1504ee39403d038b7f744430ed973ada1d [DVFS] Fix getAverageLoad(): Use theor_max_flops --- diff --git a/src/surf/plugins/host_load.cpp b/src/surf/plugins/host_load.cpp index e22ceb62c2..011b1fd8e5 100644 --- a/src/surf/plugins/host_load.cpp +++ b/src/surf/plugins/host_load.cpp @@ -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()