X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-nrpe-config%2Fdsa-update-apt-status;h=d4a6f2d80ef65613558dc2264685af573276b293;hb=74fcb5cf4cefb61dc95b384d616c66c9175bc8ab;hp=a6b5b8ada8b92fde1b2e7334bb71cdc61e9eb539;hpb=6f1b9549915d9d7837e09a3a53054237801b573d;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-nrpe-config/dsa-update-apt-status b/dsa-nagios-nrpe-config/dsa-update-apt-status index a6b5b8a..d4a6f2d 100755 --- a/dsa-nagios-nrpe-config/dsa-update-apt-status +++ b/dsa-nagios-nrpe-config/dsa-update-apt-status @@ -23,7 +23,7 @@ run_required() { local last_mod last_mod=`stat -c "%Y" "$STATUS"` now=`date +%s` - age=$(( "$now" - "$last_mod" )) + age=$(( $now - $last_mod )) [ "$age" -gt "$MAX_AGE" ] && return $run return $norun