[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible trbo monitor: refactor

Holger Levsen gitlab at salsa.debian.org
Mon Sep 28 18:05:23 BST 2020



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
8e625671 by Holger Levsen at 2020-09-28T17:37:30+02:00
reproducible trbo monitor: refactor

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/jenkins-shell-monitor.sh


Changes:

=====================================
bin/jenkins-shell-monitor.sh
=====================================
@@ -52,7 +52,7 @@ main_loop() {
 	REPRO_WORKERS=$(grep -c reproducible_worker.sh $PSFAX || true)
 	JENKINS_AGENTS=$(grep -c jenkins/agent.jar $PSFAX || true)
 	NODES_TOTAL=$(find ~/nodes -mindepth 1 -type d | wc -l)
-	(	echo $DF_HEADER
+	(	printf  "%-45s %-5s %-5s %s\n" "mountpoint" "size" "avail" "usage"
 		for FILESYSTEM in /dev/vda1 /var/lib/jenkins/userContent/reproducible /srv/workspace /tmp ; do
 			DF_FILESYSTEM=$(df -h $FILESYSTEM | tail -1)
 			FILESYSTEM_MOUNTPOINT=$(echo $DF_FILESYSTEM | awk '{ print $6 }')
@@ -149,8 +149,6 @@ trap cleanup_all INT TERM EXIT
 # initialize internal loop variables
 SEQ1=$(seq 1 10)	# outer loop
 SEQ2=$(seq 1 60)	# inner loop
-# static data
-DF_HEADER=$(df | head -1)
 # static colors
 FOREGROUND_COLOR=$(tput sgr0)
 RED=$(tput setaf 1)



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/8e62567145516aeedf190344b555143838c180ac

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/8e62567145516aeedf190344b555143838c180ac
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20200928/cbb4473d/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list