From 683ba45a051e43e02cbfb7d721e80316faa6ab94 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 13 Dec 2007 00:03:09 +0000 Subject: [PATCH] [SIGAR-78] Fix MultiProcCpu.percent --- bindings/java/src/org/hyperic/sigar/MultiProcCpu.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/java/src/org/hyperic/sigar/MultiProcCpu.java b/bindings/java/src/org/hyperic/sigar/MultiProcCpu.java index d3a84d43..a389ac7d 100644 --- a/bindings/java/src/org/hyperic/sigar/MultiProcCpu.java +++ b/bindings/java/src/org/hyperic/sigar/MultiProcCpu.java @@ -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.