From 2a063db7a481b55aeaa936d85191dcc0c56859f6 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Sat, 13 Dec 2003 00:29:08 +0000 Subject: [PATCH] Print out percentages instead --- check_afsspace | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check_afsspace b/check_afsspace index 5fbd123..0b7bfa8 100755 --- a/check_afsspace +++ b/check_afsspace @@ -46,6 +46,8 @@ foreach $l (@infos) { elsif ($percent >= $WARNINGS) { push (@warnings, "$h: $part $percent% full, free $free\n"); } + push (@final, "$part$percent%"); + } if (@critical) { @@ -56,10 +58,8 @@ if (@warning) { print @warning; exit 1; } -foreach $l (@infos) { +foreach $l (@final) { chomp($l); - $l =~ s/Free space on partition //; - $l =~ s/ K blocks out of total /\//; print "$l "; } print "\n"; -- 2.39.5