[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] jenkins-shell-monitor: refactoring printf...

Holger Levsen (@holger) gitlab at salsa.debian.org
Sat Feb 18 01:07:49 GMT 2023



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


Commits:
8d6573fb by Holger Levsen at 2023-02-18T02:07:35+01:00
jenkins-shell-monitor: refactoring printf...

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

- - - - -


1 changed file:

- bin/jenkins-shell-monitor.sh


Changes:

=====================================
bin/jenkins-shell-monitor.sh
=====================================
@@ -70,7 +70,6 @@ main_loop() {
 			fi
 			printf  "%-45s %-5s %-${WIDTH}s %s\n" $FILESYSTEM_MOUNTPOINT $FILESYSTEM_SIZE $FILESYSTEM_AVAIL $FILESYSTEM_USAGE
 			# include some directory stats which have been problematic in the past
-			WIDTH=5
 			case $FILESYSTEM in
 				"/dev/vda1")
 					for DIR_PATH in /var/lib/jenkins /var/lib/schroot /srv/schroots /srv/reproducible-results/rbuild-debian ; do
@@ -80,7 +79,7 @@ main_loop() {
 						else
 							DIR_USAGE=$DU
 						fi
-						printf  "%-45s %-5s %-${WIDTH}s %s\n" "  $DIR_PATH" "" "" $DIR_USAGE
+						printf  "%-55s %-12s\n" "  $DIR_PATH" $DIR_USAGE
 					done
 					;;
 				"/var/lib/jenkins/userContent/reproducible")
@@ -93,7 +92,7 @@ main_loop() {
 						else
 							DIR_USAGE=$DU
 						fi
-						printf  "%-45s %-5s %-${WIDTH}s %s\n" "  $VISIBLE_PATH" "" "" $DIR_USAGE
+						printf  "%-55s %-12s\n" "  $VISIBLE_PATH" $DIR_USAGE
 					done
 					;;
 			esac



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/8d6573fb9460eb422048ec8fd3df9feb7480e6fb
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/20230218/cb726b79/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list