summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iostat
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2012-06-26 21:37:59 +0000
committertedu <tedu@openbsd.org>2012-06-26 21:37:59 +0000
commit4103bfe472b2ec0c33a25fb9dcbeb3428c50f297 (patch)
tree9c718b6c31e1d7be2f0ec97401d532cb7c4b8586 /usr.sbin/iostat
parentafter a talk with ariane, use MAP_FIXED for mquery to avoid the cost of (diff)
downloadwireguard-openbsd-4103bfe472b2ec0c33a25fb9dcbeb3428c50f297.tar.xz
wireguard-openbsd-4103bfe472b2ec0c33a25fb9dcbeb3428c50f297.zip
tweak column spacing to allow for larger numbers
Diffstat (limited to 'usr.sbin/iostat')
-rw-r--r--usr.sbin/iostat/iostat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c
index 7da45b59b4e..1a319174545 100644
--- a/usr.sbin/iostat/iostat.c
+++ b/usr.sbin/iostat/iostat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iostat.c,v 1.27 2009/11/22 22:22:14 tedu Exp $ */
+/* $OpenBSD: iostat.c,v 1.28 2012/06/26 21:37:59 tedu Exp $ */
/* $NetBSD: iostat.c,v 1.10 1996/10/25 18:21:58 scottr Exp $ */
/*
@@ -231,7 +231,7 @@ header(void)
if (ISSET(todo, SHOW_TOTALS))
(void)printf(" KB/t xfr MB ");
else
- (void)printf(" KB/t t/s MB/s ");
+ (void)printf(" KB/t t/s MB/s ");
}
if (ISSET(todo, SHOW_STATS_2))
for (i = 0; i < dk_ndrive; i++)
@@ -263,7 +263,7 @@ disk_stats(double etime)
(void)printf(" %5.2f", mbps);
/* average transfers per second. */
- (void)printf(" %3.0f",
+ (void)printf(" %4.0f",
(cur.dk_rxfer[dn] + cur.dk_wxfer[dn]) / etime);
/* time busy in disk activity */
@@ -276,7 +276,7 @@ disk_stats(double etime)
(double)(1024 * 1024);
else
mbps = 0;
- (void)printf(" %4.2f ", mbps / etime);
+ (void)printf(" %5.2f ", mbps / etime);
}
}
@@ -295,7 +295,7 @@ disk_stats2(double etime)
(cur.dk_rbytes[dn] + cur.dk_wbytes[dn]) / (1024.0) / etime);
/* average transfers per second. */
- (void)printf(" %3.0f",
+ (void)printf(" %4.0f",
(cur.dk_rxfer[dn] + cur.dk_wxfer[dn]) / etime);
/* average time busy in disk activity. */