good morning!!!!

Skip to content
Snippets Groups Projects
Commit 628a0bde authored by Enrique Fynn's avatar Enrique Fynn Committed by Péter Szilágyi
Browse files

common/fdlimit: Fix compilation error in freebsd, Raise() returns uint64 (#19141)

cast limit.Cur (int64) to uint64, fix test and compilation error
parent fbedf62f
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ func Raise(max uint64) (uint64, error) {
if err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &limit); err != nil {
return 0, err
}
return limit.Cur, nil
return uint64(limit.Cur), nil
}
// Current retrieves the number of file descriptors allowed to be opened by this
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment