update
This commit is contained in:
+3
-2
@@ -586,12 +586,13 @@ def get_system_status():
|
|||||||
for name in names:
|
for name in names:
|
||||||
n = name.strip().lower()
|
n = name.strip().lower()
|
||||||
if n:
|
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:
|
except Exception as e:
|
||||||
logger.error(f"Process check error: {e}")
|
logger.error(f"Process check error: {e}")
|
||||||
return status
|
return status
|
||||||
|
|
||||||
|
|
||||||
def publish_telemetry():
|
def publish_telemetry():
|
||||||
status = get_system_status()
|
status = get_system_status()
|
||||||
stems = [Path(f).stem for f in read_lines(FILE_LIST_PATH)]
|
stems = [Path(f).stem for f in read_lines(FILE_LIST_PATH)]
|
||||||
|
|||||||
Reference in New Issue
Block a user