Skip to content

Commit

Permalink
Fix formatting for tps values between 99.95 and 99.99; previously
Browse files Browse the repository at this point in the history
it would display as "100.0", breaking vertical alignment.

MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D23538
  • Loading branch information
trasz committed Feb 21, 2020
1 parent 5ac6a2c commit 125de82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr.sbin/iostat/iostat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ",
Expand Down

0 comments on commit 125de82

Please sign in to comment.