Author: trasz
Date: Fri Feb 21 20:57:32 2020
New Revision: 358228
URL: https://svnweb.freebsd.org/changeset/base/358228

Log:
  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

Modified:
  head/usr.sbin/iostat/iostat.c

Modified: head/usr.sbin/iostat/iostat.c
==============================================================================
--- head/usr.sbin/iostat/iostat.c       Fri Feb 21 18:21:57 2020        
(r358227)
+++ head/usr.sbin/iostat/iostat.c       Fri Feb 21 20:57:32 2020        
(r358228)
@@ -929,7 +929,7 @@ devstats(int perf_select, long double etime, int havel
                        }
                        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 ",
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to