Update check_routes.sh

This commit is contained in:
Manevolent 2022-12-21 22:09:38 -07:00 committed by GitHub
parent 144fa93a1c
commit 95cdeea14d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,9 @@ do
up=false
elif [ "$handshake" == "0" ]; then
up=false
elif [ "$bytes_recv" == "0" ]; then
# A peer we have never received data from is not available
up=false
else
delta="$((current_time - handshake))"
if [ $delta -gt $TIMEOUT ]; then