diff options
| author | Allan Jude <allanjude@FreeBSD.org> | 2018-04-18 02:25:03 +0000 |
|---|---|---|
| committer | Allan Jude <allanjude@FreeBSD.org> | 2018-04-18 02:25:03 +0000 |
| commit | 0484aa6d85c133f9af72e0ddf958cd93f8d1178f (patch) | |
| tree | b0809057628df0fa77d9272e7d974696749da6ae /usr.sbin | |
| parent | 0279ac04edcf87a92216a80acc7be76a2ff51957 (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/iostat/iostat.c | 12 |
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"); } |
