GitLab maintenance scheduled for Tomorrow, 2020-01-30, from 17:00 to 18:00 CT - Services will be unavailable during this time.

Commit 08382fd6 authored by Valentin Reis's avatar Valentin Reis

[fix] power lowerbound comparison error

parent 5288d9be
......@@ -68,9 +68,9 @@ class DiscretizedPowerActuator(object):
pl = self.sensor_manager.get_powerlimits()
logger.info("BanditPowerActuator: power limits %r", pl)
maxW = int(pl[[k for k,i in pl.items()][0]]['maxW'])
if maxW > self.lowerboundwatts:
if maxW < self.lowerboundwatts:
logger.error( "BanditPowerActuator: The provided power lowerbound is"\
"lower than the available maximum CPU wattage.")
"higher than the available maximum CPU wattage.")
rangeW=maxW-self.lowerboundwatts
arms = [self.lowerboundwatts + (float(a)*rangeW/float(self.k)) for a in range(1,self.k+1)]
logger.info("BanditPowerActuator: discretized power limits: %r:", arms)
......
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