Skip to content

Commit

Permalink
Make limitToUint parse to uint instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
damilola-bello committed Apr 24, 2021
1 parent c7a38de commit 61c36c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v3/process/process_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,11 +485,11 @@ func limitToUint(val string) (uint64, error) {
if val == "unlimited" {
return math.MaxUint64, nil
} else {
res, err := strconv.ParseInt(val, 10, 32)
res, err := strconv.ParseUint(val, 10, 64)
if err != nil {
return 0, err
}
return uint64(res), nil
return res, nil
}
}

Expand Down

0 comments on commit 61c36c7

Please sign in to comment.