From 76b1d0f081158516e91027d36c794d2338223a13 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 12 May 2005 02:46:46 +0000 Subject: [PATCH] use SIGAR_TICK2SEC macro --- src/os/solaris/solaris_sigar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index 6b869d3d..858013c5 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -376,10 +376,10 @@ int sigar_cpu_list_get(sigar_t *sigar, sigar_cpu_list_t *cpulist) cpu = &cpulist->data[cpulist->number++]; - cpu->user = cpuinfo[CPU_USER] / sigar->ticks; - cpu->sys = cpuinfo[CPU_KERNEL] / sigar->ticks; - cpu->idle = cpuinfo[CPU_IDLE] / sigar->ticks; - cpu->wait = cpuinfo[CPU_WAIT] / sigar->ticks; + cpu->user = SIGAR_TICK2SEC(cpuinfo[CPU_USER]); + cpu->sys = SIGAR_TICK2SEC(cpuinfo[CPU_KERNEL]); + cpu->idle = SIGAR_TICK2SEC(cpuinfo[CPU_IDLE]); + cpu->wait = SIGAR_TICK2SEC(cpuinfo[CPU_WAIT]); cpu->nice = 0; /* no cpu->nice */ cpu->total = 0;