Commit 9fe8a58c authored by Valentin Reis's avatar Valentin Reis

[fix] key error fix

parent f617aee3
......@@ -152,7 +152,7 @@ class BanditController(object):
def planify(self, target, machineinfo, applications):
"""Plan the next action for the control loop."""
current_e = float(machineinfo['energy']['cumulative']['package-0'])/(1000*1000) # in joules
current_e = float(machineinfo['energy']['energy']['cumulative']['package-0'])/(1000*1000) # in joules
if self.last_e==0:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment