X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=check-remote-mailqs;h=d37ec7aa7b368ee9a0b85a2445cb419ddaa07199;hb=5b09fb8ae01ae1c9aa5c3ccde60f6e6a22f7d6a6;hp=6e9cf7c2cebbd1cfde4df4fe0d971dd9b1802055;hpb=40dd151ec6ba75633c74568da59e35a45351f194;p=distro-setup diff --git a/check-remote-mailqs b/check-remote-mailqs index 6e9cf7c..d37ec7a 100755 --- a/check-remote-mailqs +++ b/check-remote-mailqs @@ -26,8 +26,7 @@ for h in bk je li frodo kwwg x3wg x2wg kdwg sywg; do else if [[ -s $statefile ]]; then logsec=$(date +%s -d "$(head -n1 $statefile | awk '{print $1,$2}')") - nowsec=$(date +%s) - if (( logsec < nowsec - 60*60*20 )); then + if (( logsec < EPOCHSECONDS - 60*60*20 )); then echo $0: host $h ssh /usr/local/bin/check-mailq fail for over 20 hours fi fi