X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/acd555b41f9a71f6e3ed538f00d1e84fe6d19024..635743ad3b947c1b55642cb708fbf1626fe0b36f:/src/surf/plugins/host_energy.cpp diff --git a/src/surf/plugins/host_energy.cpp b/src/surf/plugins/host_energy.cpp index 85d3d0c49d..2b88fb032c 100644 --- a/src/surf/plugins/host_energy.cpp +++ b/src/surf/plugins/host_energy.cpp @@ -468,7 +468,8 @@ void sg_host_energy_update_all() std::vector list; simgrid::s4u::Engine::instance()->hostList(&list); for (auto host : list) - host->extension()->update(); + if (dynamic_cast(host) == nullptr) // Ignore virtual machines + host->extension()->update(); }); }