mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 02:35:07 +01:00 
			
		
		
		
	DiskstatCollector: cast part_max_used metric to int
This commit is contained in:
		@@ -102,7 +102,7 @@ func (m *DiskstatCollector) Read(interval time.Duration, output chan lp.CCMetric
 | 
			
		||||
			part_max_used = perc
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	y, err := lp.New("part_max_used", map[string]string{"type": "node"}, m.meta, map[string]interface{}{"value": part_max_used}, time.Now())
 | 
			
		||||
	y, err := lp.New("part_max_used", map[string]string{"type": "node"}, m.meta, map[string]interface{}{"value": int(part_max_used)}, time.Now())
 | 
			
		||||
	if err == nil {
 | 
			
		||||
		y.AddMeta("unit", "percent")
 | 
			
		||||
		output <- y
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user