From 081c28ff776640216310129b73a8561ab47e8905 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 22 Jul 2005 01:04:51 +0000 Subject: [PATCH] support -H flag for hard limits --- .../java/src/net/hyperic/sigar/cmd/Ulimit.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/bindings/java/src/net/hyperic/sigar/cmd/Ulimit.java b/bindings/java/src/net/hyperic/sigar/cmd/Ulimit.java index 82acb6ad..c3fd30ac 100644 --- a/bindings/java/src/net/hyperic/sigar/cmd/Ulimit.java +++ b/bindings/java/src/net/hyperic/sigar/cmd/Ulimit.java @@ -24,6 +24,10 @@ public class Ulimit extends SigarCommandBase { return "Display system resource limits"; } + protected boolean validateArgs(String[] args) { + return true; + } + private static String format(long val) { if (val == ResourceLimit.INFINITY()) { return "unlimited"; @@ -41,10 +45,22 @@ public class Ulimit extends SigarCommandBase { public void output(String[] args) throws SigarException { + this.mode = "Cur"; this.invoker = SigarInvokerJMX.getInstance(this.proxy, "Type=ResourceLimit"); - this.mode = "Cur"; + for (int i=0; i