Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Dec 2016 12:27:01 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r310263 - stable/11/usr.sbin/iostat
Message-ID:  <201612191227.uBJCR13v054371@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612191227.uBJCR13v054371>