[SIGAR-78] Fix MultiProcCpu.percent
This commit is contained in:
parent
ddc153b679
commit
683ba45a05
|
@ -45,7 +45,7 @@ public class MultiProcCpu extends ProcCpu {
|
||||||
ptable.put(query, cpu);
|
ptable.put(query, cpu);
|
||||||
}
|
}
|
||||||
|
|
||||||
long timeNow = System.currentTimeMillis() / 1000; //seconds
|
long timeNow = System.currentTimeMillis();
|
||||||
double diff = timeNow - cpu.lastTime;
|
double diff = timeNow - cpu.lastTime;
|
||||||
if (diff == 0) {
|
if (diff == 0) {
|
||||||
return cpu; //we were just called within < 1 second ago.
|
return cpu; //we were just called within < 1 second ago.
|
||||||
|
|
Loading…
Reference in New Issue