From 6dec7d322a57d211d0e54ec1668afe77b62b44ef Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Tue, 13 Feb 2018 19:50:11 +0100 Subject: [PATCH] [HostLoad] Ignore VM's ... --- src/surf/plugins/host_load.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/surf/plugins/host_load.cpp b/src/surf/plugins/host_load.cpp index 71e8bf0e09..9b2a88087a 100644 --- a/src/surf/plugins/host_load.cpp +++ b/src/surf/plugins/host_load.cpp @@ -122,6 +122,9 @@ static void onActionStateChange(simgrid::surf::CpuAction* action, simgrid::surf: for (simgrid::surf::Cpu* const& cpu : action->cpus()) { simgrid::s4u::Host* host = cpu->getHost(); + if (dynamic_cast(host)) // Ignore virtual machines + return; + if (host != nullptr) { // Get the host_load extension for the relevant host HostLoad* host_load = host->extension(); -- 2.20.1