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:
parent
9ace37176e
commit
100b034530
@ -769,9 +769,9 @@ phdr(void)
|
|||||||
(void)printf(" blk xfr msps ");
|
(void)printf(" blk xfr msps ");
|
||||||
} else {
|
} else {
|
||||||
if (Iflag == 0)
|
if (Iflag == 0)
|
||||||
printf(" KB/t tps MB/s ");
|
printf(" KB/t tps MB/s ");
|
||||||
else
|
else
|
||||||
printf(" KB/t xfrs MB ");
|
printf(" KB/t xfrs MB ");
|
||||||
}
|
}
|
||||||
printed++;
|
printed++;
|
||||||
}
|
}
|
||||||
@ -945,7 +945,7 @@ devstats(int perf_select, long double etime, int havelast)
|
|||||||
ms_per_transaction);
|
ms_per_transaction);
|
||||||
} else {
|
} else {
|
||||||
if (Iflag == 0)
|
if (Iflag == 0)
|
||||||
printf(" %5.2Lf %3.0Lf %5.2Lf ",
|
printf(" %4.1Lf %4.0Lf %5.2Lf ",
|
||||||
kb_per_transfer,
|
kb_per_transfer,
|
||||||
transfers_per_second,
|
transfers_per_second,
|
||||||
mb_per_second);
|
mb_per_second);
|
||||||
@ -953,7 +953,7 @@ devstats(int perf_select, long double etime, int havelast)
|
|||||||
total_mb = total_bytes;
|
total_mb = total_bytes;
|
||||||
total_mb /= 1024 * 1024;
|
total_mb /= 1024 * 1024;
|
||||||
|
|
||||||
printf(" %5.2Lf %3.1" PRIu64 " %5.2Lf ",
|
printf(" %4.1Lf %4.1" PRIu64 " %5.2Lf ",
|
||||||
kb_per_transfer,
|
kb_per_transfer,
|
||||||
total_transfers,
|
total_transfers,
|
||||||
total_mb);
|
total_mb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user