[SIGAR-78] Fix MultiProcCpu.percent

This commit is contained in:
Doug MacEachern committed 2007-12-13 00:03:09 +00:00
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.