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:
Eric Callahan 2021-07-09 08:01:27 -04:00
parent fb9206aa8f
commit df43aca222
1 changed files with 1 additions and 2 deletions

View File

@ -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)