From 5ae081f7a93e7b03965673352f8d56e4ea9e2e21 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 21 Nov 2005 22:22:15 +0000 Subject: [PATCH] make calculate method public --- bindings/java/src/net/hyperic/sigar/CpuPerc.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/java/src/net/hyperic/sigar/CpuPerc.java b/bindings/java/src/net/hyperic/sigar/CpuPerc.java index ededb542..cbc227a2 100644 --- a/bindings/java/src/net/hyperic/sigar/CpuPerc.java +++ b/bindings/java/src/net/hyperic/sigar/CpuPerc.java @@ -12,7 +12,7 @@ public class CpuPerc { CpuPerc() {} - static CpuPerc calculate(Cpu oldCpu, Cpu curCpu) { + public static CpuPerc calculate(Cpu oldCpu, Cpu curCpu) { double diffUser, diffSys, diffNice, diffIdle, diffWait, diffTotal; diffUser = curCpu.getUser() - oldCpu.getUser();