summaryrefslogtreecommitdiffstats
path: root/commands/limit_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/limit_darwin.go')
-rw-r--r--commands/limit_darwin.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/limit_darwin.go b/commands/limit_darwin.go
index b9d977737..1635c8471 100644
--- a/commands/limit_darwin.go
+++ b/commands/limit_darwin.go
@@ -75,11 +75,11 @@ func tweakLimit() {
jww.ERROR.Println("Unable to obtain rLimit", err)
}
if rLimit.Cur < rLimit.Max {
- rLimit.Max = 999999
- rLimit.Cur = 999999
+ rLimit.Max = 10000
+ rLimit.Cur = 10000
err = syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit)
if err != nil {
- jww.ERROR.Println("Unable to increase number of open files limit", err)
+ jww.WARN.Println("Unable to increase number of open files limit", err)
}
}
}