Fix style bugs introduced by Matt Dillon in his previous, unreviewed

commit.

Reviewed by:	gibbs
This commit is contained in:
ken 1998-09-16 23:14:47 +00:00
parent 7bec193ef7
commit 0a0dbfbd48
2 changed files with 11 additions and 10 deletions

View File

@ -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

View File

@ -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) {