]> git.michaelhowe.org Git - packages/a/afs-monitor.git/commitdiff
Print out percentages instead
authorQuanah Gibson-Mount <quanah@stanford.edu>
Sat, 13 Dec 2003 00:29:08 +0000 (00:29 +0000)
committerQuanah Gibson-Mount <quanah@stanford.edu>
Sat, 13 Dec 2003 00:29:08 +0000 (00:29 +0000)
check_afsspace

index 5fbd123320f4de6384f19a967946bceafe9a24a8..0b7bfa83cfc9dfb1c95a3d2c28dec3d10145d863 100755 (executable)
@@ -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";