mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
Enforce conversion for freebsd
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
parent
208d21a393
commit
141c188ae6
|
@ -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