Mercurial > illumos > wpa
changeset 14021:9915df7eb304
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>
author | Richard Lowe <richlowe@richlowe.net> |
---|---|
date | Wed, 17 Apr 2013 20:25:52 -0400 |
parents | a8db07801f46 |
children | 624fa8f61951 |
files | usr/src/cmd/stat/kstat/kstat.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/stat/kstat/kstat.c Thu Mar 21 15:19:00 2013 -0400 +++ b/usr/src/cmd/stat/kstat/kstat.c Wed Apr 17 20:25:52 2013 -0400 @@ -918,9 +918,9 @@ 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);