X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=gnt-pv-usage.sh;h=3f29a75e054381f3ffab389b799aa835d82be49e;hb=d5732cc155f6bec9388194a9bc4b26186e090658;hp=5e3f39f5676d152121fc9921d123915cf048214c;hpb=ac0b6f6f9fa61b843ba9f24475fa277cf2176a14;p=gnt-info diff --git a/gnt-pv-usage.sh b/gnt-pv-usage.sh index 5e3f39f..3f29a75 100755 --- a/gnt-pv-usage.sh +++ b/gnt-pv-usage.sh @@ -1,4 +1,4 @@ #!/bin/sh -xe -gnt-cluster command -M pvs --units t --noheadings | grep -v '^return' | awk '{ print $0 " " $6 - $7 }' | tee /dev/shm/gnt-pv-usage +gnt-cluster command -M pvs --units t | grep -v '^return' | awk '{ if ( $6 - $7 != 0 ) print $0 " " $6 - $7 ; else print $0 ; }' | tee /dev/shm/gnt-pv-usage