summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iostat
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2013-06-04 21:14:28 +0000
committertedu <tedu@openbsd.org>2013-06-04 21:14:28 +0000
commit142cabff886d9df86f55acd73d02f2b8b44276a0 (patch)
tree3de43b1a4292314d6974a9c4d6f59b1bcd4a8d5b /usr.sbin/iostat
parentSupport for the SS10/SS20 NVSIMM as block devices; tested by nick@ (diff)
downloadwireguard-openbsd-142cabff886d9df86f55acd73d02f2b8b44276a0.tar.xz
wireguard-openbsd-142cabff886d9df86f55acd73d02f2b8b44276a0.zip
not sure who uses the "alternate" display, but the columns look like ass
Diffstat (limited to 'usr.sbin/iostat')
-rw-r--r--usr.sbin/iostat/iostat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c
index 1a319174545..149e6d4378f 100644
--- a/usr.sbin/iostat/iostat.c
+++ b/usr.sbin/iostat/iostat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iostat.c,v 1.28 2012/06/26 21:37:59 tedu Exp $ */
+/* $OpenBSD: iostat.c,v 1.29 2013/06/04 21:14:28 tedu Exp $ */
/* $NetBSD: iostat.c,v 1.10 1996/10/25 18:21:58 scottr Exp $ */
/*
@@ -236,7 +236,7 @@ header(void)
if (ISSET(todo, SHOW_STATS_2))
for (i = 0; i < dk_ndrive; i++)
if (cur.dk_select[i]) {
- (void)printf(" KB xfr time ");
+ (void)printf(" KB xfr time ");
}
if (ISSET(todo, SHOW_CPU))
(void)printf(" us ni sy in id");
@@ -291,7 +291,7 @@ disk_stats2(double etime)
continue;
/* average kbytes per second. */
- (void)printf(" %4.0f",
+ (void)printf(" %6.0f",
(cur.dk_rbytes[dn] + cur.dk_wbytes[dn]) / (1024.0) / etime);
/* average transfers per second. */