From e3a21f088b0da8a3419b587a073589a91f90859e Mon Sep 17 00:00:00 2001 From: Mateusz Karlowski Date: Thu, 5 Mar 2026 13:13:53 +0100 Subject: [PATCH] [#92258] Fix psutil comment version --- watch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watch.py b/watch.py index 4d6453b..9f2884a 100644 --- a/watch.py +++ b/watch.py @@ -535,7 +535,7 @@ class PsUtilWatcher(Watcher): cpu_name = platform.processor() or "unknown" header = [ - f"# psutil version: {psutil.__version__}", + f"# sargraph version: {SARGRAPH_VERSION}", f"pid: {os.getpid()}", f"machine: {platform.system()}", f"cpu count: {cpus}", @@ -617,13 +617,13 @@ class PsUtilWatcher(Watcher): # Was a graph already produced by save command from sargraph? dont_plot = False + self.initialize(None) s = sched.scheduler(time.time, time.sleep) sar_ev = s.enter(0, 1, self.psutil_sar_simulation, (s,)) mem_ev = s.enter(0, 1, self.get_meminfo, (s,)) thread = Thread(target = s.run) thread.start() - self.initialize() socket_fd = self.sock.fileno() while 1: