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