From 88ea672ba65bf09dd2fbd209b93f450b38be8889 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 8 Feb 2006 18:09:39 +0000 Subject: [PATCH] always print totals for comparision --- bindings/java/src/net/hyperic/sigar/cmd/CpuInfo.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/cmd/CpuInfo.java b/bindings/java/src/net/hyperic/sigar/cmd/CpuInfo.java index 4ba522a9..84b221e5 100644 --- a/bindings/java/src/net/hyperic/sigar/cmd/CpuInfo.java +++ b/bindings/java/src/net/hyperic/sigar/cmd/CpuInfo.java @@ -62,10 +62,8 @@ public class CpuInfo extends SigarCommandBase { output(cpus[i]); } - if (infos.length > 1) { - println("Totals........"); - output(this.sigar.getCpuPerc()); - } + println("Totals........"); + output(this.sigar.getCpuPerc()); } public static void main(String[] args) throws Exception {