INNER CODE UNIT · Shell
ago
IAmStoxe/wirehole · scripts/wirehole-doctor.sh:305
ago=$((now - hs))
if [[ $ago -lt 300 ]]; then
connected=$((connected + 1))
echo " device $short: connected ${ago}s ago"
else
echo " device $short: last seen ${ago}s ago"
fi
fi
done <<< "$peers"
echo
if [[ $connected -gt 0 ]]; then
ok "$connected of $total devices are connected right now."
else
warn "No device has connected in the last 5 minutes."
fix "Turn the VPN on, wait 10 seconds, and run this script again."
fi
fi
fi