From 84dcdd1fa6a12ccd7a66b68e410b5150ceb0c05c Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 25 Aug 2006 00:16:00 +0000 Subject: [PATCH] use -s to test single-process ptql queries --- .../src/org/hyperic/sigar/cmd/ProcInfo.java | 46 ++++++++++++++----- 1 file changed, 35 insertions(+), 11 deletions(-) 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