Commit 56d89781 authored by Valentin Reis's avatar Valentin Reis

[fix] Do not play the bandit strategy until an application is started.

parent d5b5d8c1
......@@ -152,6 +152,8 @@ class BanditController(object):
def planify(self, target, machineinfo, applications):
"""Plan the next action for the control loop."""
if len(applications)==0:
total_progress = sum([a.progress for a in applications.values()])
total_power = float(machineinfo['energy']['power']['p0'])
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