提交 6fa0704d 编写于 作者: M mayowa

fixed: ProcessorId doesnt return a value

上级 ee43e655
......@@ -63,9 +63,14 @@ func CPUInfo() ([]CPUInfoStat, error) {
return ret, err
}
procID := ""
var procID string
for i, l := range dst {
procID = ""
if l.ProcessorId != nil {
procID = *l.ProcessorId
}
cpu := CPUInfoStat{
CPU: int32(i),
Family: fmt.Sprintf("%d", l.Family),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册