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