mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-25 23:19:06 +01:00
Check if at least one CPU with frequency information was detected
This commit is contained in:
parent
9ae0806aa9
commit
7a67d5e25f
@ -142,6 +142,11 @@ func (m *CPUFreqCpuInfoCollector) Init(config json.RawMessage) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if at least one CPU with frequency information was detected
|
||||||
|
if len(m.topology) == 0 {
|
||||||
|
return fmt.Errorf("No CPU frequency info found in %s", cpuInfoFile)
|
||||||
|
}
|
||||||
|
|
||||||
numPhysicalPackageID_int := maxPhysicalPackageID + 1
|
numPhysicalPackageID_int := maxPhysicalPackageID + 1
|
||||||
numPhysicalPackageID := fmt.Sprint(numPhysicalPackageID_int)
|
numPhysicalPackageID := fmt.Sprint(numPhysicalPackageID_int)
|
||||||
numNonHT := fmt.Sprint(numNonHT_int)
|
numNonHT := fmt.Sprint(numNonHT_int)
|
||||||
|
Loading…
Reference in New Issue
Block a user