From df43aca222fb92ac4c906ed4f1c3d79189da13c1 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Fri, 9 Jul 2021 08:01:27 -0400 Subject: [PATCH] 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 --- moonraker/components/proc_stats.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/moonraker/components/proc_stats.py b/moonraker/components/proc_stats.py index b8d3489..49dc303 100644 --- a/moonraker/components/proc_stats.py +++ b/moonraker/components/proc_stats.py @@ -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)