Remove unused variable gmresults

This commit is contained in:
Holger Obermaier 2023-09-12 10:48:51 +02:00
parent 674e78b3d0
commit faad23ed64

View File

@ -87,7 +87,6 @@ type LikwidCollector struct {
metrics map[C.int]map[string]int metrics map[C.int]map[string]int
groups []C.int groups []C.int
config LikwidCollectorConfig config LikwidCollectorConfig
gmresults map[int]map[string]float64
basefreq float64 basefreq float64
running bool running bool
initialized bool initialized bool
@ -241,11 +240,6 @@ func (m *LikwidCollector) Init(config json.RawMessage) error {
m.likwidGroups = make(map[C.int]LikwidEventsetConfig) 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 // This is for the global metrics computation test
totalMetrics := 0 totalMetrics := 0
// Generate parameter list for the metric computing test // 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)) { if m.config.InvalidToZero && (math.IsNaN(value) || math.IsInf(value, 0)) {
value = 0.0 value = 0.0
} }
//m.gmresults[tid][metric.Name] = value
// Now we have the result, send it with the proper tags // Now we have the result, send it with the proper tags
if !math.IsNaN(value) { if !math.IsNaN(value) {
if metric.Publish { if metric.Publish {