From 26789736b13ff6645082315eb0370070267d7992 Mon Sep 17 00:00:00 2001 From: Roby Date: Thu, 29 Oct 2026 09:08:28 +0100 Subject: [PATCH] fix(agent): ripristinato riconoscimento processi con trattino (MMDVM-Host) Corretto il matching del nome dei processi in psutil. La rimozione dei trattini ora avviene su entrambe le stringhe prima del confronto, risolvendo il falso positivo di stato 'KO' per MMDVMHost introdotto con il recente aggiornamento dei socket MQTT. --- system_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system_monitor.py b/system_monitor.py index 09d1382..a7fb090 100644 --- a/system_monitor.py +++ b/system_monitor.py @@ -574,7 +574,7 @@ def get_system_status(): n = name.strip().lower() if n: # Trova i processi che matchano il nome (ignorando i trattini) - matching_procs = [p for p in running_procs if (p.info.get('name') or '').lower() in (n, n.replace('-', ''))] + matching_procs = [p for p in running_procs if (p.info.get('name') or '').lower().replace('-', '') == n.replace('-', '')] if not matching_procs: status["processes"][n] = "offline"