From owner-svn-src-all@freebsd.org Thu Mar 28 20:16:20 2019 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A51CE1567E3F; Thu, 28 Mar 2019 20:16:20 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4386089C5E; Thu, 28 Mar 2019 20:16:20 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 203C5242E6; Thu, 28 Mar 2019 20:16:20 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x2SKGKtI069533; Thu, 28 Mar 2019 20:16:20 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x2SKGJVF069532; Thu, 28 Mar 2019 20:16:19 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201903282016.x2SKGJVF069532@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Thu, 28 Mar 2019 20:16:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r345653 - head/usr.sbin/iostat X-SVN-Group: head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: head/usr.sbin/iostat X-SVN-Commit-Revision: 345653 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4386089C5E X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.94 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.95)[-0.945,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Mar 2019 20:16:20 -0000 Author: trasz Date: Thu Mar 28 20:16:19 2019 New Revision: 345653 URL: https://svnweb.freebsd.org/changeset/base/345653 Log: Make the "KB/s" field one character shorter (by reducing the precision) and use the space to make the "tps" one character longer. It makes the iostat(8) output a bit less messed up. Reviewed by: allanjude MFC after: 2 weeks Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D19710 Modified: head/usr.sbin/iostat/iostat.c Modified: head/usr.sbin/iostat/iostat.c ============================================================================== --- head/usr.sbin/iostat/iostat.c Thu Mar 28 20:13:34 2019 (r345652) +++ head/usr.sbin/iostat/iostat.c Thu Mar 28 20:16:19 2019 (r345653) @@ -769,9 +769,9 @@ phdr(void) (void)printf(" blk xfr msps "); } else { if (Iflag == 0) - printf(" KB/t tps MB/s "); + printf(" KB/t tps MB/s "); else - printf(" KB/t xfrs MB "); + printf(" KB/t xfrs MB "); } printed++; } @@ -945,7 +945,7 @@ devstats(int perf_select, long double etime, int havel ms_per_transaction); } else { if (Iflag == 0) - printf(" %5.2Lf %3.0Lf %5.2Lf ", + printf(" %4.1Lf %4.0Lf %5.2Lf ", kb_per_transfer, transfers_per_second, mb_per_second); @@ -953,7 +953,7 @@ devstats(int perf_select, long double etime, int havel total_mb = total_bytes; total_mb /= 1024 * 1024; - printf(" %5.2Lf %3.1" PRIu64 " %5.2Lf ", + printf(" %4.1Lf %4.1" PRIu64 " %5.2Lf ", kb_per_transfer, total_transfers, total_mb);