From 3020e076d42e7c9f3144602e7c810c7fd7b212e3 Mon Sep 17 00:00:00 2001 From: Roby Date: Mon, 19 Oct 2026 19:00:28 +0200 Subject: [PATCH] update --- system_monitor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/system_monitor.py b/system_monitor.py index 4ea172a..0b33f08 100644 --- a/system_monitor.py +++ b/system_monitor.py @@ -586,12 +586,13 @@ def get_system_status(): for name in names: n = name.strip().lower() if n: - status["processes"][n] = "online" if n in running else "offline" + # MAGIA QUI: Controlla se il nome corrisponde, ignorando i trattini (mmdvmhost == mmdvm-host) + is_online = any(r == n or r.replace('-', '') == n.replace('-', '') for r in running) + status["processes"][n] = "online" if is_online else "offline" except Exception as e: logger.error(f"Process check error: {e}") return status - def publish_telemetry(): status = get_system_status() stems = [Path(f).stem for f in read_lines(FILE_LIST_PATH)]