提交 6f9abdb8 编写于 作者: S Shirou WAKAYAMA

fix cpu info outofrange error on darwin.

上级 0cdfc73b
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册