summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iostat
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>1998-09-16 23:14:47 +0000
committerken <ken@FreeBSD.org>1998-09-16 23:14:47 +0000
commit0a0dbfbd489d1cdf469246e170ac645a6f29f055 (patch)
treefd0dda33cc8281634a0f7ea39bd191a8f14ab2c5 /usr.sbin/iostat
parent7bec193ef7864c772f237ef3cd18de8ccac0ca37 (diff)
downloadFreeBSD-src-0a0dbfbd489d1cdf469246e170ac645a6f29f055.zip
FreeBSD-src-0a0dbfbd489d1cdf469246e170ac645a6f29f055.tar.gz
Fix style bugs introduced by Matt Dillon in his previous, unreviewed
commit. Reviewed by: gibbs
Diffstat (limited to 'usr.sbin/iostat')
-rw-r--r--usr.sbin/iostat/iostat.88
-rw-r--r--usr.sbin/iostat/iostat.c13
2 files changed, 11 insertions, 10 deletions
diff --git a/usr.sbin/iostat/iostat.8 b/usr.sbin/iostat/iostat.8
index b87e2a3..194faf7 100644
--- a/usr.sbin/iostat/iostat.8
+++ b/usr.sbin/iostat/iostat.8
@@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: iostat.8,v 1.5 1998/09/15 08:16:45 gibbs Exp $
+.\" $Id: iostat.8,v 1.6 1998/09/16 18:03:44 dillon Exp $
.\"
.\" Copyright (c) 1985, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -109,12 +109,12 @@ Put iostat in
.Sq top
mode. In this mode, iostat will show devices in order from highest to
lowest bytes per measurement cycle.
-.It Fl K
-In the blocks transfered display (-o), display block count in kilobytes rather
-then the device native block size.
.It Fl I
Display total statstics for a given time period, rather than average
statistics for each second during that time period.
+.It Fl K
+In the blocks transfered display (-o), display block count in kilobytes rather
+then the device native block size.
.It Fl M
Extract values associated with the name list from the specified core
instead of the default
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c
index 839fd0a..8a9368c 100644
--- a/usr.sbin/iostat/iostat.c
+++ b/usr.sbin/iostat/iostat.c
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: iostat.c,v 1.9 1998/09/15 08:16:45 gibbs Exp $
+ * $Id: iostat.c,v 1.10 1998/09/16 18:03:44 dillon Exp $
*/
/*
* Parts of this program are derived from the original FreeBSD iostat
@@ -184,7 +184,7 @@ main(int argc, char **argv)
matches = NULL;
maxshowdevs = 3;
- while ((c = getopt(argc, argv, "c:CdhKIM:n:N:ot:Tw:?")) != -1) {
+ while ((c = getopt(argc, argv, "c:CdhIKM:n:N:ot:Tw:?")) != -1) {
switch(c) {
case 'c':
cflag++;
@@ -201,12 +201,12 @@ main(int argc, char **argv)
case 'h':
hflag++;
break;
- case 'K':
- Kflag++;
- break;
case 'I':
Iflag++;
break;
+ case 'K':
+ Kflag++;
+ break;
case 'M':
memf = optarg;
break;
@@ -621,7 +621,8 @@ devstats(int perf_select)
if (Kflag) {
int block_size = cur.dinfo->devices[di].block_size;
- total_blocks = total_blocks * (block_size ? block_size : 512) / 1024;
+ total_blocks = total_blocks * (block_size ?
+ block_size : 512) / 1024;
}
if (oflag > 0) {
OpenPOWER on IntegriCloud