Enforce conversion for freebsd

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2018-07-26 14:58:56 +02:00
parent 208d21a393
commit 141c188ae6

View file

@ -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.