示例#1
0
文件: sysconfig.go 项目: 98pm/docker
func GetClockTicks() int {
	return int(C.get_hz())
}
func GetMetric(params interface{}, log *logger.Logger) interface{} {
	diff, cpus := getJiffyDiff(log)
	return [2]float64{(float64(diff) / float64(C.get_hz())), float64(cpus)}
}