proc_stats: fix erroneous timer handle assignment
The delayed callback to "log_last_stats()" in the Watchdog shold not have its return value assigned to the watchdog handle. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
fb9206aa8f
commit
df43aca222
|
@ -221,8 +221,7 @@ class Watchdog:
|
|||
f"EVENT LOOP BLOCKED: {round(time_diff, 2)} seconds")
|
||||
# delay the stat logging so we capture the CPU percentage after
|
||||
# the next cycle
|
||||
self.wdcb_handle = self.evt_loop.call_later(
|
||||
.2, self.proc_stats.log_last_stats(5))
|
||||
self.evt_loop.call_later(.2, self.proc_stats.log_last_stats(5))
|
||||
self.last_watch_time = cur_time
|
||||
self.wdcb_handle = self.evt_loop.call_later(
|
||||
WATCHDOG_REFRESH_TIME, self._watchdog_callback)
|
||||
|
|
Loading…
Reference in New Issue