Make the "KB/s" field one character shorter (by reducing the precision)

and use the space to make the "tps" one character longer.

It makes the iostat(8) output a bit less messed up.

Reviewed by:	allanjude
MFC after:	2 weeks
Sponsored by:	Klara Inc.
Differential Revision:	https://reviews.freebsd.org/D19710
This commit is contained in:
Edward Tomasz Napierala 2019-03-28 20:16:19 +00:00
parent 9ace37176e
commit 100b034530
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345653

View File

@ -769,9 +769,9 @@ phdr(void)
(void)printf(" blk xfr msps ");
} else {
if (Iflag == 0)
printf(" KB/t tps MB/s ");
printf(" KB/t tps MB/s ");
else
printf(" KB/t xfrs MB ");
printf(" KB/t xfrs MB ");
}
printed++;
}
@ -945,7 +945,7 @@ devstats(int perf_select, long double etime, int havelast)
ms_per_transaction);
} else {
if (Iflag == 0)
printf(" %5.2Lf %3.0Lf %5.2Lf ",
printf(" %4.1Lf %4.0Lf %5.2Lf ",
kb_per_transfer,
transfers_per_second,
mb_per_second);
@ -953,7 +953,7 @@ devstats(int perf_select, long double etime, int havelast)
total_mb = total_bytes;
total_mb /= 1024 * 1024;
printf(" %5.2Lf %3.1" PRIu64 " %5.2Lf ",
printf(" %4.1Lf %4.1" PRIu64 " %5.2Lf ",
kb_per_transfer,
total_transfers,
total_mb);