svn commit: r310263 - stable/11/usr.sbin/iostat

Edward Tomasz Napierala trasz at FreeBSD.org
Mon Dec 19 12:27:02 UTC 2016


Author: trasz
Date: Mon Dec 19 12:27:01 2016
New Revision: 310263
URL: https://svnweb.freebsd.org/changeset/base/310263

Log:
  MFC r306095:
  
  Make the "r/s" and "w/s" fields in "iostat -x" a little bit wider;
  five chars is way too narrow for todays disks.

Modified:
  stable/11/usr.sbin/iostat/iostat.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/iostat/iostat.c
==============================================================================
--- stable/11/usr.sbin/iostat/iostat.c	Mon Dec 19 12:25:30 2016	(r310262)
+++ stable/11/usr.sbin/iostat/iostat.c	Mon Dec 19 12:27:01 2016	(r310263)
@@ -807,7 +807,7 @@ devstats(int perf_select, long double et
 			printf("           cpu ");
 		printf("\n");
 		if (Iflag == 0) {
-			printf("device     r/s   w/s     kr/s     kw/s "
+			printf("device       r/s     w/s     kr/s     kw/s "
 			    " ms/r  ms/w  ms/o  ms/t qlen  %%b  ");
 		} else {
 			printf("device           r/i         w/i         kr/i"
@@ -884,7 +884,7 @@ devstats(int perf_select, long double et
 			    mb_per_second_write > ((long double).0005)/1024 ||
 			    busy_pct > 0.5) {
 				if (Iflag == 0)
-					printf("%-8.8s %5d %5d %8.1Lf "
+					printf("%-8.8s %7d %7d %8.1Lf "
 					    "%8.1Lf %5d %5d %5d %5d "
 					    "%4" PRIu64 " %3.0Lf ",
 					    devicename,


More information about the svn-src-all mailing list