From a80780b9ed6d62a80a946e2058e9d7b970cc04bd Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Tue, 1 Sep 2015 16:19:53 +0100 Subject: [PATCH] energy_model: idle state fix --- wlauto/instrumentation/energy_model/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlauto/instrumentation/energy_model/__init__.py b/wlauto/instrumentation/energy_model/__init__.py index f3c446c9..a5e23a71 100644 --- a/wlauto/instrumentation/energy_model/__init__.py +++ b/wlauto/instrumentation/energy_model/__init__.py @@ -475,7 +475,7 @@ class EnergyModelInstrument(Instrument): if not context.spec.label.startswith('idle_'): return for idle_state in self.get_device_idle_states(self.measured_cluster): - if idle_state.id > context.spec.idle_state_index: + if idle_state.index > context.spec.idle_state_index: idle_state.disable = 1 else: idle_state.disable = 0