(SIGAR-145) default to 'Irix mode' for proc_cpu.percent

This commit is contained in:
Doug MacEachern 2009-07-02 16:03:27 -07:00
parent 07941d4304
commit 89b0b68ece
1 changed files with 0 additions and 3 deletions

View File

@ -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;
}