From 1145f83c977bf69f21af33413878111e7e156892 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 12 May 2005 02:57:24 +0000 Subject: [PATCH] fold CP_INTR into CP_SYS --- src/os/darwin/darwin_sigar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index e2500c1b..747e71d9 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -476,9 +476,9 @@ int sigar_cpu_get(sigar_t *sigar, sigar_cpu_t *cpu) cpu->user = cp_time[CP_USER]; cpu->nice = cp_time[CP_NICE]; - cpu->sys = cp_time[CP_SYS]; + cpu->sys = cp_time[CP_SYS] + cp_time[CP_INTR]; cpu->idle = cp_time[CP_IDLE]; - cpu->wait = cp_time[CP_INTR]; + cpu->wait = 0; /*N/A*/ cpu->total = cpu->user + cpu->nice + cpu->sys + cpu->idle; #endif