Commit 5afbec57 authored by Valentin Reis's avatar Valentin Reis

[fix] controller dict key

parent ef69cbc4
......@@ -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']['total']['p0'])/(1000*1000) # in joules
current_e = float(machineinfo['energy']['cumulative']['p0'])/(1000*1000) # in joules
if self.last_e==0:
self.last_e=current_e
return([],[])
......
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