Skip to content

Commit

Permalink
Merge pull request #1063 from damilola-bello/master
Browse files Browse the repository at this point in the history
Make limitToUint parse to uint instead of int
  • Loading branch information
shirou committed Apr 25, 2021
2 parents c7a38de + 61c36c7 commit 539c0d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v3/process/process_linux.go
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 539c0d5

Please sign in to comment.