diff options
author | ken <ken@FreeBSD.org> | 1998-09-16 23:14:47 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 1998-09-16 23:14:47 +0000 |
commit | 0a0dbfbd489d1cdf469246e170ac645a6f29f055 (patch) | |
tree | fd0dda33cc8281634a0f7ea39bd191a8f14ab2c5 /usr.sbin/iostat/iostat.c | |
parent | 7bec193ef7864c772f237ef3cd18de8ccac0ca37 (diff) | |
download | FreeBSD-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/iostat.c')
-rw-r--r-- | usr.sbin/iostat/iostat.c | 13 |
1 files changed, 7 insertions, 6 deletions
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) { |