summaryrefslogtreecommitdiffstats
path: root/etc/munin/plugins
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-11-10 00:37:51 +0100
committerHolger Levsen <holger@layer-acht.org>2012-11-10 00:37:51 +0100
commitb4b8848c67a100db67be6248f034def916ec85ae (patch)
tree764d43802e9d540c73aefe517a783c9e32f403de /etc/munin/plugins
parent075deb383e9f2726f1803093a44f4108beabd6ca (diff)
downloadjenkins.debian.net-b4b8848c67a100db67be6248f034def916ec85ae.tar.xz
speedup this plugin by 50%
Diffstat (limited to 'etc/munin/plugins')
-rwxr-xr-xetc/munin/plugins/jenkins_builds_results2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/munin/plugins/jenkins_builds_results b/etc/munin/plugins/jenkins_builds_results
index 2dfb7310..352da798 100755
--- a/etc/munin/plugins/jenkins_builds_results
+++ b/etc/munin/plugins/jenkins_builds_results
@@ -52,7 +52,7 @@ fi
for PREFIX in $JOB_PREFIXES ; do
for STATE in success unstable failed ; do
NR=0
- NR=$( (for i in /var/lib/jenkins/jobs/${PREFIX}*/builds/*/log ; do tail -1 $i 2>/dev/null; done ) | grep -i -c $STATE)
+ NR=$( (for i in /var/lib/jenkins/jobs/${PREFIX}*/builds/*_*/log ; do tail -1 $i 2>/dev/null; done ) | grep -i -c $STATE)
NR=$(echo "$NR/2"|bc)
echo "jenkins_builds_results_${PREFIX}_${STATE}.value $NR"
done