summaryrefslogtreecommitdiffstats
path: root/etc/munin/plugins
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-12-02 19:34:42 +0100
committerHolger Levsen <holger@layer-acht.org>2012-12-02 19:34:42 +0100
commit997b2cbabb1978aa3762ae1557fe29c3780da72f (patch)
tree6b465b72c134c9a3fc19b00279b0d0743258efc0 /etc/munin/plugins
parent1e221a2be5d85579166365828a1368d569d23d90 (diff)
downloadjenkins.debian.net-997b2cbabb1978aa3762ae1557fe29c3780da72f.tar.xz
make cd-tests more robust
Diffstat (limited to 'etc/munin/plugins')
-rwxr-xr-xetc/munin/plugins/jenkins_builds2
-rwxr-xr-xetc/munin/plugins/jenkins_builds_results2
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/munin/plugins/jenkins_builds b/etc/munin/plugins/jenkins_builds
index 70f3c4ad..450cf4e0 100755
--- a/etc/munin/plugins/jenkins_builds
+++ b/etc/munin/plugins/jenkins_builds
@@ -32,7 +32,7 @@ fi
STATEFILE=$MUNIN_PLUGSTATE/$(basename $0)
# delete statefile if it's older than $update_interval set in /etc/munin/plugin-conf.d/jenkins
-if test $(find $STATEFILE -mmin +$update_interval) ; then
+if test $(find $STATEFILE ! -mmin +$update_interval) ; then
rm -f $STATEFILE
fi
diff --git a/etc/munin/plugins/jenkins_builds_results b/etc/munin/plugins/jenkins_builds_results
index e7661724..76b64bf0 100755
--- a/etc/munin/plugins/jenkins_builds_results
+++ b/etc/munin/plugins/jenkins_builds_results
@@ -32,7 +32,7 @@ fi
STATEFILE=$MUNIN_PLUGSTATE/$(basename $0)
# delete statefile if it's older than $update_interval set in /etc/munin/plugin-conf.d/jenkins
-if test $(find $STATEFILE -mmin +$update_interval) ; then
+if test $(find $STATEFILE ! -mmin +$update_interval) ; then
rm -f $STATEFILE
fi