fixed: ProcessorId doesnt return a value
This commit is contained in:
parent
ee43e655c2
commit
6fa0704dbf
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue