https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272438

Martin Guy <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Martin Guy <[email protected]> ---
A second problem caused by this is that the line can overflow 80 characters
which makes the output even more ragged.

I resolved this for "procps"'s vmstat by removing spaces before
following columns (except for one), improving the cited output to:

 procs    memory    page                      disks     faults       cpu
 r  b  w  avm  fre  flt  re  pi  po   fr   sr ad0 da0   in   sy   cs us sy id
 1  0  1 523M 233M 7.7K   9   6   1 8.4K  530   0   0 4214 6.4K 3.0K 52  9 39
 2  0  1 523M 233M    0   0   0   0    0    5   0 115 16441 32K  24K 23 42 35
 2  0  1 523M 233M    0   0   0   0    0    5   0  27 9921  24K  13K 21 54 25
 2  0  1 523M 233M    0   0   0   0    0    5   0 139 17027 25K  24K 23 45 32
 2  0  1 523M 233M    0   0   0   0    0    5   0  31 11108 26K  15K 18 55 27

but it wasn't imported for some years and I eventually tired of having to
update the patch due to the maintainers' mania for widespread reformatting
and reindenting of the code.

This won't hurt programs that try to process the output to select columns
by cutting on fixed column as any such are already broken by the column
overflow
but continues to work for scripts that select output using $1 $2 $3 etc.

I've just switched to FreeBSD after decades of Debian and would be happy
to try making a patch to do the same for BSD's vmstat, to dip my toe into
BSD development.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to