1
0
mirror of https://github.com/craigerl/aprsd.git synced 2024-12-21 17:11:01 -05:00

Update healthcheck

Check for keepalive with connection_keepalive to support more than
1 of the client types.
This commit is contained in:
Hemna 2024-11-27 20:53:53 -05:00
parent d94a3e7b90
commit 7fb0c7454e

View File

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