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" && {
|
||||
nproc
|
||||
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
|
||||
'human')
|
||||
column -t
|
||||
|
|
Loading…
Reference in a new issue