From 36949c6c941932c842be1d23bb3fde2e61e74f22 Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Wed, 22 Aug 2012 12:34:22 +0000 Subject: [PATCH] =?UTF-8?q?correction=20du=20bug=20251=20(je=20me=20demand?= =?UTF-8?q?e=20pourquoi=20ce=20probl=C3=A8me=20n'est=20pas=20apparu=20avan?= =?UTF-8?q?t)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ClusterController/ClusterStatus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ClusterController/ClusterStatus.py b/ClusterController/ClusterStatus.py index 9a4be60..4cc60f9 100644 --- a/ClusterController/ClusterStatus.py +++ b/ClusterController/ClusterStatus.py @@ -138,7 +138,8 @@ class ClusterStatus: """ fEnergyConsumption = 0.0 for machine in self.m_clusterNodes.itervalues(): - fEnergyConsumption += machine.getEnergyConsumption() + if machine.isReady(): + fEnergyConsumption += machine.getEnergyConsumption() return fEnergyConsumption def getEnergySavings( self ):