add missing cpu wait

This commit is contained in:
Doug MacEachern 2005-05-12 00:13:14 +00:00
parent 6fed44d47c
commit fe1ed25bd1
1 changed files with 1 additions and 0 deletions

View File

@ -661,6 +661,7 @@ int sigar_cpu_get(sigar_t *sigar, sigar_cpu_t *cpu)
cpu->nice = SIGAR_FIELD_NOTIMPL; /* N/A */
cpu->sys = SIGAR_TICK2SEC(data.cpu[CPU_KERNEL]);
cpu->idle = SIGAR_TICK2SEC(data.cpu[CPU_IDLE]);
cpu->wait = SIGAR_TICK2SEC(data.cpu[CPU_WAIT]);
cpu->total = 0;
for (i=0; i<CPU_NTIMES; i++) {