use SIGAR_TICK2SEC macro

This commit is contained in:
Doug MacEachern 2005-05-12 02:46:46 +00:00
parent 9101d2d95e
commit 76b1d0f081
1 changed files with 4 additions and 4 deletions

View File

@ -376,10 +376,10 @@ int sigar_cpu_list_get(sigar_t *sigar, sigar_cpu_list_t *cpulist)
cpu = &cpulist->data[cpulist->number++]; cpu = &cpulist->data[cpulist->number++];
cpu->user = cpuinfo[CPU_USER] / sigar->ticks; cpu->user = SIGAR_TICK2SEC(cpuinfo[CPU_USER]);
cpu->sys = cpuinfo[CPU_KERNEL] / sigar->ticks; cpu->sys = SIGAR_TICK2SEC(cpuinfo[CPU_KERNEL]);
cpu->idle = cpuinfo[CPU_IDLE] / sigar->ticks; cpu->idle = SIGAR_TICK2SEC(cpuinfo[CPU_IDLE]);
cpu->wait = cpuinfo[CPU_WAIT] / sigar->ticks; cpu->wait = SIGAR_TICK2SEC(cpuinfo[CPU_WAIT]);
cpu->nice = 0; /* no cpu->nice */ cpu->nice = 0; /* no cpu->nice */
cpu->total = 0; cpu->total = 0;