projects
/
gnt-info
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
install windows 10 using ide disk and virtio.iso drivers
[gnt-info]
/
gnt-pv-usage.sh
diff --git
a/gnt-pv-usage.sh
b/gnt-pv-usage.sh
index
5e3f39f
..
3f29a75
100755
(executable)
--- a/
gnt-pv-usage.sh
+++ b/
gnt-pv-usage.sh
@@
-1,4
+1,4
@@
#!/bin/sh -xe
#!/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