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
1 changed files with 1 additions and 1 deletions

View File

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