Improve printing when using CSV format
Make sure there is always the same number of fields per line.
This commit is contained in:
parent
c4f4166146
commit
453f6af063
|
@ -90,7 +90,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 -r printf 'AVAILABLE %s %s\n'
|
} | xargs -r printf 'AVAILABLE %s %s %s %s\n'
|
||||||
} | case $FMT in
|
} | case $FMT in
|
||||||
'human')
|
'human')
|
||||||
column -t
|
column -t
|
||||||
|
|
Loading…
Reference in a new issue