summaryrefslogtreecommitdiffstats
path: root/etc/munin/plugins/jenkins_jobs
diff options
context:
space:
mode:
Diffstat (limited to 'etc/munin/plugins/jenkins_jobs')
-rwxr-xr-xetc/munin/plugins/jenkins_jobs2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/munin/plugins/jenkins_jobs b/etc/munin/plugins/jenkins_jobs
index 8502525c..6d2619c2 100755
--- a/etc/munin/plugins/jenkins_jobs
+++ b/etc/munin/plugins/jenkins_jobs
@@ -48,6 +48,6 @@ if [ "$1" = "config" ]; then
fi
for PREFIX in $JOB_PREFIXES ; do
- NR=$(find /var/lib/jenkins/jobs/ -name "$PREFIX*" -type d | wc -l)
+ NR=$(find /var/lib/jenkins/jobs/ -maxdepth 1 -name "$PREFIX*" -type d | wc -l)
echo "jenkins_jobs_$PREFIX.value $NR"
done