diff options
author | Richard Lowe <richlowe@richlowe.net> | 2013-04-17 20:25:52 -0400 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2013-04-19 22:39:01 -0400 |
commit | 5918f984c877663f045498a174106df2e489ab55 (patch) | |
tree | 803a475943d984d2b862ed2e00fcdad053791af9 | |
parent | ef16f6b5e980be84e2248939502c5aa269ef026d (diff) | |
download | illumos-joyent-5918f984c877663f045498a174106df2e489ab55.tar.gz |
3724 kstat reports idle time as io_wait, kernel as pio_wait, etc
Reviewed by: Brendan Gregg <brendan.gregg@joyent.com>
Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
Reviewed by: Jason King <jason.brian.king@gmail.com>
Approved by: Garrett D'Amore <garrett@damore.org>
-rw-r--r-- | usr/src/cmd/stat/kstat/kstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/stat/kstat/kstat.c b/usr/src/cmd/stat/kstat/kstat.c index 6f9ef1260c..2ce62fc037 100644 --- a/usr/src/cmd/stat/kstat/kstat.c +++ b/usr/src/cmd/stat/kstat/kstat.c @@ -918,9 +918,9 @@ save_cpu_stat(kstat_t *kp, ks_instance_t *ksi) SAVE_UINT32_X(ksi, "user", sysinfo->cpu[CPU_USER]); SAVE_UINT32_X(ksi, "kernel", sysinfo->cpu[CPU_KERNEL]); SAVE_UINT32_X(ksi, "wait", sysinfo->cpu[CPU_WAIT]); - SAVE_UINT32_X(ksi, "wait_io", sysinfo->cpu[W_IO]); - SAVE_UINT32_X(ksi, "wait_swap", sysinfo->cpu[W_SWAP]); - SAVE_UINT32_X(ksi, "wait_pio", sysinfo->cpu[W_PIO]); + SAVE_UINT32_X(ksi, "wait_io", sysinfo->wait[W_IO]); + SAVE_UINT32_X(ksi, "wait_swap", sysinfo->wait[W_SWAP]); + SAVE_UINT32_X(ksi, "wait_pio", sysinfo->wait[W_PIO]); SAVE_UINT32(ksi, sysinfo, bread); SAVE_UINT32(ksi, sysinfo, bwrite); SAVE_UINT32(ksi, sysinfo, lread); |