提交 755d3a41 编写于 作者: S Shirou WAKAYAMA

cpu[darwin]: change default tick to 100.

上级 12843632
...@@ -14,7 +14,7 @@ import ( ...@@ -14,7 +14,7 @@ import (
const HELPER_PATH = "/tmp/gopsutil_cpu_helper" const HELPER_PATH = "/tmp/gopsutil_cpu_helper"
var ClocksPerSec = float64(128) var ClocksPerSec = float64(100)
func init() { func init() {
out, err := exec.Command("/usr/bin/getconf", "CLK_TCK").Output() out, err := exec.Command("/usr/bin/getconf", "CLK_TCK").Output()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册