Improve printing when using CSV format

Make sure there is always the same number of fields per line.
This commit is contained in:
Alexis Ben Miloud--Josselin 2019-10-02 18:08:41 +02:00
parent c4f4166146
commit 453f6af063

View file

@ -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