Skip to content

Commit ab28d9c

Browse files
committed
Use 64-bit integer for parsing kernel_max
1 parent 3dec912 commit ab28d9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

numcpus_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func getKernelMax() (int, error) {
144144
if err != nil {
145145
return 0, err
146146
}
147-
n, err := strconv.ParseInt(strings.Trim(string(buf), "\n "), 10, 32)
147+
n, err := strconv.ParseInt(strings.Trim(string(buf), "\n "), 10, 64)
148148
if err != nil {
149149
return 0, err
150150
}

0 commit comments

Comments
 (0)