Hello all, the column widths in iostat(1) output are not spaced correctly. tty ad0 da0 cd0 cpu tin tout KB/t tps MB/s KB/t tps MB/s KB/t tps MB/s us ni sy in id 14 170 0.00 0 0.00 128.00 202 25.23 0.00 0 0.00 2 0 10 6 82 15 324 0.00 0 0.00 128.00 202 25.23 0.00 0 0.00 2 0 0 5 94 KB/t > 100 make the display overflow. KB/t is not helpful anyway, because '1.00' is of width 4, whereas '1024' (bytes) would be of width 4 too. So either cut it down to '1.0' or just use the byte count anyway. Proposed patch is attached. It simply changes the display to %5.1f, an alternative would be to remove the additional spaces between different devices. Ulrich Spoerlein PS: This still sucks, as transfer rates above 100MB/s will make the display overflow again :( -- PGP Key ID: 20FEE9DD Encrypted mail welcome! Fingerprint: AEC9 AF5E 01AC 4EE1 8F70 6CBD E76E 2227 20FE E9DD Which is worse: ignorance or apathy? Don't know. Don't care.Received on Sun May 14 2006 - 17:11:40 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:55 UTC