Commit 06c7232b authored by Valentin Reis's avatar Valentin Reis

Bugfixes on the logs, commenting out the actual control part.

parent 67f5959e
Pipeline #4408 failed with stages
in 2 minutes and 14 seconds
......@@ -39,6 +39,8 @@ class Application(object):
# TODO: not a real model
if command not in self.thread_fsm_table[self.thread_state]:
return 0.0
logger.info("SELF.PROGRESS: %s" % self.progress)
logger.info("SELF.THREADS: %s" % self.threads)
speed = float(self.progress)/float(self.threads['cur'])
if command == 'i':
return speed
......
......@@ -78,7 +78,7 @@ class PowerActuator(object):
action.command, action.delta, action.target)
# sensor_manager is a SensorManager, which is not only about sensing
# but also about setting power limits.
self.sensor_manager.set_powerlimit(action.target, action.command)
# self.sensor_manager.set_powerlimit(action.target, action.command)
def update(self, action):
pass
......
......@@ -172,7 +172,6 @@ class Daemon(object):
plan = self.controller.planify(self.target, self.machine_info)
logger.info("Controller chose plan " + str(plan))
action, actuator = plan
logger.info("Action target:%s command:%s delta:%s was computed by the power controller." %(action.target,action.command,action.delta))
if action:
self.controller.execute(action, actuator)
self.controller.update(action, actuator)
......
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