From faad23ed64ad23d5d9df9703e840b12352278faa Mon Sep 17 00:00:00 2001 From: Holger Obermaier <40787752+ho-ob@users.noreply.github.com> Date: Tue, 12 Sep 2023 10:48:51 +0200 Subject: [PATCH] Remove unused variable gmresults --- collectors/likwidMetric.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/collectors/likwidMetric.go b/collectors/likwidMetric.go index 73ae852..b57ef71 100644 --- a/collectors/likwidMetric.go +++ b/collectors/likwidMetric.go @@ -87,7 +87,6 @@ type LikwidCollector struct { metrics map[C.int]map[string]int groups []C.int config LikwidCollectorConfig - gmresults map[int]map[string]float64 basefreq float64 running bool initialized bool @@ -241,11 +240,6 @@ func (m *LikwidCollector) Init(config json.RawMessage) error { m.likwidGroups = make(map[C.int]LikwidEventsetConfig) - m.gmresults = make(map[int]map[string]float64) - for _, tid := range m.cpu2tid { - m.gmresults[tid] = make(map[string]float64) - } - // This is for the global metrics computation test totalMetrics := 0 // Generate parameter list for the metric computing test @@ -719,7 +713,6 @@ func (m *LikwidCollector) calcGlobalMetrics(groups []LikwidEventsetConfig, inter if m.config.InvalidToZero && (math.IsNaN(value) || math.IsInf(value, 0)) { value = 0.0 } - //m.gmresults[tid][metric.Name] = value // Now we have the result, send it with the proper tags if !math.IsNaN(value) { if metric.Publish {