rename sysctlFSFileMax to rlimitMaxNumFiles to reflect what it actually does
This commit is contained in:
parent
f7c42b78ac
commit
bdf6e47004
3 changed files with 5 additions and 6 deletions
|
|
@ -64,9 +64,8 @@ func sysctlSomaxconn() int {
|
|||
return maxConns
|
||||
}
|
||||
|
||||
// sysctlFSFileMax returns the maximum number of open file descriptors (value
|
||||
// of fs.file-max) or 0 in case of error.
|
||||
func sysctlFSFileMax() int {
|
||||
// rlimitMaxNumFiles returns hard limit for RLIMIT_NOFILE
|
||||
func rlimitMaxNumFiles() int {
|
||||
var rLimit syscall.Rlimit
|
||||
err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rLimit)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue