summaryrefslogtreecommitdiffstats
path: root/usr.sbin/iostat
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2002-05-30 19:09:05 +0000
committerderaadt <deraadt@openbsd.org>2002-05-30 19:09:05 +0000
commit0f3328b94a3d18283589340dad5f16f5fd537364 (patch)
treee97fc9e2d6c0f85d4f31353120d7a6f1e6efad8f /usr.sbin/iostat
parentminor tweaks (diff)
downloadwireguard-openbsd-0f3328b94a3d18283589340dad5f16f5fd537364.tar.xz
wireguard-openbsd-0f3328b94a3d18283589340dad5f16f5fd537364.zip
minor KNF
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 a4f227448b9..3f44941e35c 100644
--- a/usr.sbin/iostat/iostat.c
+++ b/usr.sbin/iostat/iostat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iostat.c,v 1.13 2002/03/14 16:44:25 mpech Exp $ */
+/* $OpenBSD: iostat.c,v 1.14 2002/05/30 19:09:05 deraadt Exp $ */
/* $NetBSD: iostat.c,v 1.10 1996/10/25 18:21:58 scottr Exp $ */
/*
@@ -96,7 +96,7 @@ static char *rcsid = "$NetBSD: iostat.c,v 1.10 1996/10/25 18:21:58 scottr Exp $"
/* Defined in dkstats.c */
extern struct _disk cur;
-extern int dk_ndrive;
+extern int dk_ndrive;
/* Namelist and memory files. */
char *nlistf, *memf;
@@ -272,7 +272,7 @@ double etime;
mbps = (cur.dk_bytes[dn] / (1024.0)) / cur.dk_xfer[dn];
else
mbps = 0.0;
- (void)printf(" %5.2f", mbps);
+ (void)printf(" %5.2f", mbps);
/* average transfers per second. */
(void)printf(" %3.0f", cur.dk_xfer[dn] / etime);
@@ -284,7 +284,7 @@ double etime;
/* Megabytes per second. */
if (atime != 0.0)
mbps = cur.dk_bytes[dn] / (double)(1024 * 1024);
- else
+ else
mbps = 0;
(void)printf(" %4.2f ", mbps / etime);
}
@@ -362,7 +362,7 @@ display()
if (ISSET(todo, SHOW_TTY))
printf("%4.0f %4.0f", cur.tk_nin / etime, cur.tk_nout / etime);
-
+
if (ISSET(todo, SHOW_STATS_1))
disk_stats(etime);