Skip to content

Commit 61c36c7

Browse files
Make limitToUint parse to uint instead of int
1 parent c7a38de commit 61c36c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

v3/process/process_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,11 @@ func limitToUint(val string) (uint64, error) {
485485
if val == "unlimited" {
486486
return math.MaxUint64, nil
487487
} else {
488-
res, err := strconv.ParseInt(val, 10, 32)
488+
res, err := strconv.ParseUint(val, 10, 64)
489489
if err != nil {
490490
return 0, err
491491
}
492-
return uint64(res), nil
492+
return res, nil
493493
}
494494
}
495495

0 commit comments

Comments
 (0)