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