diff --git a/bindings/java/src/org/hyperic/sigar/cmd/ProcInfo.java b/bindings/java/src/org/hyperic/sigar/cmd/ProcInfo.java index 50503467..05a07673 100644 --- a/bindings/java/src/org/hyperic/sigar/cmd/ProcInfo.java +++ b/bindings/java/src/org/hyperic/sigar/cmd/ProcInfo.java @@ -26,6 +26,8 @@ import org.hyperic.sigar.SigarPermissionDeniedException; */ public class ProcInfo extends SigarCommandBase { + private boolean isSingleProcess; + public ProcInfo(Shell shell) { super(shell); } @@ -47,25 +49,47 @@ public class ProcInfo extends SigarCommandBase { } public void output(String[] args) throws SigarException { - long[] pids = this.shell.findPids(args); + this.isSingleProcess = false; - for (int i=0; i