Skip to content

Commit

Permalink
fix cpu info outofrange error on darwin.
Browse files Browse the repository at this point in the history
  • Loading branch information
shirou committed Sep 20, 2014
1 parent 0cdfc73 commit 6f9abdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpu_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func CPUInfo() ([]CPUInfoStat, error) {
for _, line := range strings.Split(string(out), "\n") {
values := strings.Fields(line)

t, err := strconv.ParseInt(values[1], 10, 32)
t, err := strconv.ParseInt(values[1], 10, 64)
if err != nil {
return ret, err
}
Expand Down

0 comments on commit 6f9abdb

Please sign in to comment.