From 997b2cbabb1978aa3762ae1557fe29c3780da72f Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 2 Dec 2012 19:34:42 +0100 Subject: make cd-tests more robust --- etc/munin/plugins/jenkins_builds | 2 +- etc/munin/plugins/jenkins_builds_results | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/munin/plugins') 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 -- cgit v1.2.3-70-g09d2