fold CP_INTR into CP_SYS

This commit is contained in:
Doug MacEachern 2005-05-12 02:57:24 +00:00
parent 6c1167c4d7
commit 1145f83c97
1 changed files with 2 additions and 2 deletions

View File

@ -476,9 +476,9 @@ int sigar_cpu_get(sigar_t *sigar, sigar_cpu_t *cpu)
cpu->user = cp_time[CP_USER]; cpu->user = cp_time[CP_USER];
cpu->nice = cp_time[CP_NICE]; 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->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; cpu->total = cpu->user + cpu->nice + cpu->sys + cpu->idle;
#endif #endif