From 7fb0c7454ea9fe4cd5886989e9890ef70a789fdf Mon Sep 17 00:00:00 2001 From: Hemna Date: Wed, 27 Nov 2024 20:53:53 -0500 Subject: [PATCH] Update healthcheck Check for keepalive with connection_keepalive to support more than 1 of the client types. --- aprsd/cmds/healthcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aprsd/cmds/healthcheck.py b/aprsd/cmds/healthcheck.py index 5750b70..dcbb52b 100644 --- a/aprsd/cmds/healthcheck.py +++ b/aprsd/cmds/healthcheck.py @@ -74,7 +74,7 @@ def healthcheck(ctx, timeout): console.log("No APRSClientStats") sys.exit(-1) else: - aprsis_last_update = client_stats["server_keepalive"] + aprsis_last_update = client_stats["connection_keepalive"] d = now - aprsis_last_update max_timeout = {"hours": 0.0, "minutes": 5, "seconds": 0} max_delta = datetime.timedelta(**max_timeout)