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:
parent
d94a3e7b90
commit
7fb0c7454e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user