X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/707cecf2b83fe50617ac9ec01252fd2d96edcc88..30e93357d63b0846afb6a60db2004b6761607103:/src/s4u/s4u_Host.cpp diff --git a/src/s4u/s4u_Host.cpp b/src/s4u/s4u_Host.cpp index a12b3fa8b9..a9a58c0e77 100644 --- a/src/s4u/s4u_Host.cpp +++ b/src/s4u/s4u_Host.cpp @@ -207,6 +207,10 @@ double Host::getSpeed() { return pimpl_cpu->getSpeed(1.0); } +double Host::get_available_speed() +{ + return pimpl_cpu->get_available_speed(); +} /** @brief Returns the number of core of the processor. */ int Host::getCoreCount() @@ -409,7 +413,7 @@ int sg_host_core_count(sg_host_t host) double sg_host_get_available_speed(sg_host_t host) { - return host->pimpl_cpu->get_available_speed(); + return host->get_available_speed(); } /** @brief Returns the number of power states for a host.