projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ zobel@samosa-20080920074114-zi09qxx90304mp04]
[mirror/dsa-nagios.git]
/
dsa-nagios-nrpe-config
/
dsa-update-apt-status
diff --git
a/dsa-nagios-nrpe-config/dsa-update-apt-status
b/dsa-nagios-nrpe-config/dsa-update-apt-status
index
a6b5b8a
..
d4a6f2d
100755
(executable)
--- 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`
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
[ "$age" -gt "$MAX_AGE" ] && return $run
return $norun