Commit b624b847 authored by Valentin Reis's avatar Valentin Reis

[fix] use sensor energy time difference, at period/5.

parent 2ff6c60d
......@@ -233,7 +233,7 @@ class rapl_reader:
ret['energy'] = dict()
for k in sorted(e.keys()):
if k != 'time':
ret['energy'][self.shortenkey(k)] = e[k]
ret['energy'][self.shortenkey(k)] = de[k]
ret['power'] = dict()
totalpower = 0.0
......
......@@ -239,7 +239,7 @@ class Daemon(object):
self.machine_info = self.sensor_manager.do_update()
# setup periodic sensor updates
self.sensor_cb = ioloop.PeriodicCallback(self.do_sensor, self.period)
self.sensor_cb = ioloop.PeriodicCallback(self.do_sensor, self.period / 5)
self.sensor_cb.start()
self.control = ioloop.PeriodicCallback(self.do_control, self.period)
......
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