[kvmstats] fix printf when not using -a option
This commit is contained in:
parent
97d9c76251
commit
a06be48a3e
|
@ -79,7 +79,7 @@ done | xargs -n5 | {
|
||||||
test "$SHOW_AVAIL" && {
|
test "$SHOW_AVAIL" && {
|
||||||
nproc
|
nproc
|
||||||
awk '/^MemTotal:/ { print int($2 / '$((POW / 1024))' ) }' /proc/meminfo
|
awk '/^MemTotal:/ { print int($2 / '$((POW / 1024))' ) }' /proc/meminfo
|
||||||
} | xargs printf 'AVAILABLE %s %s\n'
|
} | xargs -r printf 'AVAILABLE %s %s\n'
|
||||||
} | case $FMT in
|
} | case $FMT in
|
||||||
'human')
|
'human')
|
||||||
column -t
|
column -t
|
||||||
|
|
Loading…
Reference in a new issue