From 822a3707b2b13ed1b638f052d074fe072fb9445b Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 26 Mar 2022 19:10:04 -0400 Subject: [PATCH] Add sleep to realtime - Reduce CPU load. --- app/classes/shared/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/classes/shared/tasks.py b/app/classes/shared/tasks.py index eef4ba73..edb9e14e 100644 --- a/app/classes/shared/tasks.py +++ b/app/classes/shared/tasks.py @@ -557,6 +557,7 @@ class TasksManager: "mem_usage": host_stats.get("mem_usage"), }, ) + time.sleep(1) def log_watcher(self): self.controller.servers.check_for_old_logs()