From b1352e2f76bd12ca90e79376ebeadc8ed54c5a07 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 5 Nov 2009 14:02:54 -0800 Subject: [PATCH] (SIGAR-189) ignore CP_WAIT time on HPUX --- src/os/hpux/hpux_sigar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/os/hpux/hpux_sigar.c b/src/os/hpux/hpux_sigar.c index 26fb314a..9109a982 100644 --- a/src/os/hpux/hpux_sigar.c +++ b/src/os/hpux/hpux_sigar.c @@ -134,8 +134,7 @@ static void get_cpu_metrics(sigar_t *sigar, cpu->idle = SIGAR_TICK2MSEC(cpu_time[CP_IDLE]); - cpu->wait = SIGAR_TICK2MSEC(cpu_time[CP_WAIT] + - cpu_time[CP_SWAIT] + + cpu->wait = SIGAR_TICK2MSEC(cpu_time[CP_SWAIT] + cpu_time[CP_BLOCK]); cpu->irq = SIGAR_TICK2MSEC(cpu_time[CP_INTR]);