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)]