diff --git a/bindings/java/src/net/hyperic/sigar/CpuPerc.java b/bindings/java/src/net/hyperic/sigar/CpuPerc.java index 1af417b7..fc81755c 100644 --- a/bindings/java/src/net/hyperic/sigar/CpuPerc.java +++ b/bindings/java/src/net/hyperic/sigar/CpuPerc.java @@ -68,6 +68,10 @@ public class CpuPerc { this.idle = idle; } + public double getCombined() { + return this.user + this.sys; + } + public static String format(double val) { String p = String.valueOf(val * 100.0); //cant wait for sprintf.