From 89b0b68ecee5756f2bf1db20f0a1471d98bee66e Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 2 Jul 2009 16:03:27 -0700 Subject: [PATCH] (SIGAR-145) default to 'Irix mode' for proc_cpu.percent --- src/sigar.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/sigar.c b/src/sigar.c index 4d228c67..574b6acb 100644 --- a/src/sigar.c +++ b/src/sigar.c @@ -161,9 +161,6 @@ SIGAR_DECLARE(int) sigar_proc_cpu_get(sigar_t *sigar, sigar_pid_t pid, total_diff = proccpu->total - otime; proccpu->percent = total_diff / (double)time_diff; - if (proccpu->percent > 1.0) { - proccpu->percent = 1.0; - } return SIGAR_OK; }