mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
Enforce conversion for freebsd
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
208d21a393
commit
141c188ae6
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ func getLimits(resource int, unit string) string {
|
|||
if err != nil {
|
||||
log.Fatal("Error!")
|
||||
}
|
||||
return fmt.Sprintf("(soft=%s, hard=%s)", limitToString(rlimit.Cur, unit), limitToString(rlimit.Max, unit))
|
||||
return fmt.Sprintf("(soft=%s, hard=%s)", limitToString(uint64(rlimit.Cur), unit), limitToString(uint64(rlimit.Max), unit))
|
||||
}
|
||||
|
||||
// FdLimits returns the soft and hard limits for file descriptors.
|
||||
|
|
|
|||
Loading…
Reference in a new issue