From 125de8263a94909b089e02c7ef96da3ebd0e4b2b Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Fri, 21 Feb 2020 20:57:32 +0000 Subject: [PATCH] Fix formatting for tps values between 99.95 and 99.99; previously it would display as "100.0", breaking vertical alignment. MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D23538 --- usr.sbin/iostat/iostat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c index dbe7219095e8..4cbfcfcbcbd5 100644 --- a/usr.sbin/iostat/iostat.c +++ b/usr.sbin/iostat/iostat.c @@ -929,7 +929,7 @@ devstats(int perf_select, long double etime, int havelast) } free(devicename); } else if (oflag > 0) { - int msdig = (ms_per_transaction < 100.0) ? 1 : 0; + int msdig = (ms_per_transaction < 99.94) ? 1 : 0; if (Iflag == 0) printf("%4.0Lf%4.0Lf%5.*Lf ",