diff --git a/bindings/java/src/net/hyperic/sigar/cmd/CpuInfo.java b/bindings/java/src/net/hyperic/sigar/cmd/CpuInfo.java index 84b221e5..4ba522a9 100644 --- a/bindings/java/src/net/hyperic/sigar/cmd/CpuInfo.java +++ b/bindings/java/src/net/hyperic/sigar/cmd/CpuInfo.java @@ -62,8 +62,10 @@ public class CpuInfo extends SigarCommandBase { output(cpus[i]); } - println("Totals........"); - output(this.sigar.getCpuPerc()); + if (infos.length > 1) { + println("Totals........"); + output(this.sigar.getCpuPerc()); + } } public static void main(String[] args) throws Exception {