Skip to content

Commit 5b3b4de

Browse files
committed
scheduler_perf: do not override throughput labels
Throughput labels are currently initialized with a "Name" label. So we need to append to the map instead of creating a new one.
1 parent 7587ab3 commit 5b3b4de

File tree

1 file changed

+1
-3
lines changed
  • test/integration/scheduler_perf

1 file changed

+1
-3
lines changed

test/integration/scheduler_perf/util.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,7 @@ func (tc *throughputCollector) collect() []DataItem {
243243
sum += tc.schedulingThroughputs[i]
244244
}
245245

246-
throughputSummary.Labels = map[string]string{
247-
"Metric": "SchedulingThroughput",
248-
}
246+
throughputSummary.Labels["Metric"] = "SchedulingThroughput"
249247
throughputSummary.Data = map[string]float64{
250248
"Average": sum / float64(length),
251249
"Perc50": tc.schedulingThroughputs[int(math.Ceil(float64(length*50)/100))-1],

0 commit comments

Comments
 (0)