Skip to content

Commit

Permalink
Update healthcheck
Browse files Browse the repository at this point in the history
Check for keepalive with connection_keepalive to support more than
1 of the client types.
  • Loading branch information
hemna committed Nov 28, 2024
1 parent d94a3e7 commit 7fb0c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aprsd/cmds/healthcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7fb0c74

Please sign in to comment.