Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
snake_case in resource::Resource
[simgrid.git] / src / surf / plugins / host_energy.cpp
index d7cbb73..44736f3 100644 (file)
@@ -237,7 +237,7 @@ double HostEnergy::getCurrentWattsValue()
     // We consider that the machine is then fully loaded. That's arbitrary but it avoids a NaN
     cpu_load = 1;
   else
-    cpu_load = host->pimpl_cpu->constraint()->get_usage() / current_speed;
+    cpu_load = host->pimpl_cpu->get_constraint()->get_usage() / current_speed;
 
   /** Divide by the number of cores here **/
   cpu_load /= host->pimpl_cpu->coreCount();