mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 02:35:07 +01:00 
			
		
		
		
	Rename cpu type to hwthread (#69)
				
					
				
			* Rename 'cpu' type to 'hwthread' to avoid naming clashes with MetricStore and CC-Webfrontend
This commit is contained in:
		@@ -82,7 +82,7 @@ func (m *CpustatCollector) Init(config json.RawMessage) error {
 | 
			
		||||
		if strings.HasPrefix(linefields[0], "cpu") && strings.Compare(linefields[0], "cpu") != 0 {
 | 
			
		||||
			cpustr := strings.TrimLeft(linefields[0], "cpu")
 | 
			
		||||
			cpu, _ := strconv.Atoi(cpustr)
 | 
			
		||||
			m.cputags[linefields[0]] = map[string]string{"type": "cpu", "type-id": fmt.Sprintf("%d", cpu)}
 | 
			
		||||
			m.cputags[linefields[0]] = map[string]string{"type": "hwthread", "type-id": fmt.Sprintf("%d", cpu)}
 | 
			
		||||
			num_cpus++
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user