Commit 2318663d authored by Valentin Reis's avatar Valentin Reis

[fix] Measure energy, not power. and do it in joules.

parent d51db1e9
......@@ -165,7 +165,7 @@ class BanditController(object):
for a in applications.values():
a.reset_progress()
logger.info("Controller: applications %r" %applications.values())
total_power = float(machineinfo['energy']['power']['p0'])
total_power = float(machineinfo['energy']['energy']['p0'])/(1000*1000) #in joules
logger.info("Controller: Reading machineinfo %s." %(str(machineinfo)))
logger.info("Controller: Reading progress %s and power %s."
%(total_progress,total_power))
......
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