mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 02:35:07 +01:00 
			
		
		
		
	Check if at least one CPU with frequency information was detected
This commit is contained in:
		@@ -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 := fmt.Sprint(numPhysicalPackageID_int)
 | 
			
		||||
	numNonHT := fmt.Sprint(numNonHT_int)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user