add missing cpu wait

This commit is contained in:
Doug MacEachern 2005-05-12 00:16:53 +00:00
parent 2299b02202
commit aeb73b9982
1 changed files with 1 additions and 0 deletions

View File

@ -725,6 +725,7 @@ static int sigar_cpu_list_get_kmem(sigar_t *sigar, sigar_cpu_list_t *cpulist)
cpu->nice = 0; /* N/A */ cpu->nice = 0; /* N/A */
cpu->sys = SIGAR_TICK2SEC(info->cpu[CPU_KERNEL]); cpu->sys = SIGAR_TICK2SEC(info->cpu[CPU_KERNEL]);
cpu->idle = SIGAR_TICK2SEC(info->cpu[CPU_IDLE]); cpu->idle = SIGAR_TICK2SEC(info->cpu[CPU_IDLE]);
cpu->wait = SIGAR_TICK2SEC(info->cpu[CPU_WAIT]);
cpu->total = cpu->user + cpu->sys + cpu->idle + cpu->wait; cpu->total = cpu->user + cpu->sys + cpu->idle + cpu->wait;
} }