[SIGAR-78] Fix MultiProcCpu.percent

This commit is contained in:
Doug MacEachern 2007-12-13 00:03:09 +00:00
parent ddc153b679
commit 683ba45a05
1 changed files with 1 additions and 1 deletions

View File

@ -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.