Merge branch 'sigar-1.6'
This commit is contained in:
commit
14b916fdb6
|
@ -161,9 +161,6 @@ SIGAR_DECLARE(int) sigar_proc_cpu_get(sigar_t *sigar, sigar_pid_t pid,
|
||||||
|
|
||||||
total_diff = proccpu->total - otime;
|
total_diff = proccpu->total - otime;
|
||||||
proccpu->percent = total_diff / (double)time_diff;
|
proccpu->percent = total_diff / (double)time_diff;
|
||||||
if (proccpu->percent > 1.0) {
|
|
||||||
proccpu->percent = 1.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return SIGAR_OK;
|
return SIGAR_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue