]> granicus.if.org Git - sysstat/commit
iostat: Display device name at the end of line when option -h used
authorSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 17 Jan 2018 19:49:49 +0000 (20:49 +0100)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Wed, 17 Jan 2018 19:49:49 +0000 (20:49 +0100)
commitf65dc29e3fddf859fa9cd22cf2f37af78ab152af
tree4598a8d246c377289d7d279c4ff6d600a5b6ce43
parent1acbba885a94c7d1516e43c0fdbe2dee9655293f
iostat: Display device name at the end of line when option -h used

iostat's option -h was intended to make the output more easily readable
by a human, especially when some devices had a long name that would make
the whole output shift around. In fact it added a '\n' to split the line
and the result was not particularly easier to read.
This patch moves the device name at the end of the line when option -h
is used without inserting more lines.
Option -h still sets option --human to automatically select the right
unit to display.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
iostat.c