Use seconds when calculating LIKWID metrics

This commit is contained in:
Thomas Roehl 2022-01-06 15:33:32 +01:00
parent bb9c0a7043
commit 1997e641d4

View File

@ -215,7 +215,7 @@ func (m *LikwidCollector) Read(interval time.Duration, output chan lp.CCMetric)
res := C.perfmon_getLastResult(gid, eidx, C.int(tid))
m.results[i][tid][gctr] = float64(res)
}
m.results[i][tid]["time"] = float64(interval)
m.results[i][tid]["time"] = interval.Seconds()
m.results[i][tid]["inverseClock"] = float64(1.0 / m.basefreq)
for _, metric := range evset.Metrics {
expression, err := govaluate.NewEvaluableExpression(metric.Calc)