X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=gnt-pv-usage.sh;h=3f29a75e054381f3ffab389b799aa835d82be49e;hb=fa388da7b6c875106b4f67ea8183bb3a0592ede3;hp=5e3f39f5676d152121fc9921d123915cf048214c;hpb=78bc13f7d1638cced08e93e32debf9f91f11d543;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