aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorAllan Jude <allanjude@FreeBSD.org>2018-04-18 02:25:03 +0000
committerAllan Jude <allanjude@FreeBSD.org>2018-04-18 02:25:03 +0000
commit0484aa6d85c133f9af72e0ddf958cd93f8d1178f (patch)
treeb0809057628df0fa77d9272e7d974696749da6ae /usr.sbin
parent0279ac04edcf87a92216a80acc7be76a2ff51957 (diff)
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/iostat/iostat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/iostat/iostat.c b/usr.sbin/iostat/iostat.c
index e0ce53961c12..e5f746c15284 100644
--- a/usr.sbin/iostat/iostat.c
+++ b/usr.sbin/iostat/iostat.c
@@ -802,11 +802,15 @@ devstats(int perf_select, long double etime, int havelast)
char *devicename;
if (xflag > 0) {
+ if (Cflag > 0) {
+ printf(" cpu\n");
+ printf(" us ni sy in id\n");
+ cpustats();
+ printf("\n");
+ }
printf(" extended device statistics ");
if (Tflag > 0)
printf(" tty ");
- if (Cflag > 0)
- printf(" cpu ");
printf("\n");
if (Iflag == 0) {
printf("device r/s w/s kr/s kw/s "
@@ -817,8 +821,6 @@ devstats(int perf_select, long double etime, int havelast)
}
if (Tflag > 0)
printf("tin tout ");
- if (Cflag > 0)
- printf("us ni sy in id ");
printf("\n");
}
@@ -922,8 +924,6 @@ devstats(int perf_select, long double etime, int havelast)
printf("%4.0Lf%5.0Lf",
cur.tk_nin / etime,
cur.tk_nout / etime);
- if (Cflag > 0)
- cpustats();
}
printf("\n");
}