From cee28c9f81c7e4046a9ddbaa9e9a54bd75bcb241 Mon Sep 17 00:00:00 2001 From: kqjy Date: Sun, 23 Nov 2025 23:45:09 +0800 Subject: [PATCH] Set CPU call to 0.1 interval to account for other environments for CPU usage calculation --- app/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ui.py b/app/ui.py index f5a9cfd..7eb4b1f 100644 --- a/app/ui.py +++ b/app/ui.py @@ -1213,7 +1213,7 @@ def connections_dashboard(): def metrics_dashboard(): principal = _current_principal() - cpu_percent = psutil.cpu_percent(interval=None) + cpu_percent = psutil.cpu_percent(interval=0.1) memory = psutil.virtual_memory() storage_root = current_app.config["STORAGE_ROOT"]