From cdfb144b82a591e75290ee700c2aa6562e8d86ae Mon Sep 17 00:00:00 2001 From: Lou Knauer Date: Thu, 5 May 2022 10:03:54 +0200 Subject: [PATCH] Fix out of bounds bug --- metricdata/cc-metric-store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metricdata/cc-metric-store.go b/metricdata/cc-metric-store.go index 70f05e5..e26b72f 100644 --- a/metricdata/cc-metric-store.go +++ b/metricdata/cc-metric-store.go @@ -603,7 +603,7 @@ func (ccms *CCMetricStore) LoadNodeData(cluster string, metrics, nodes []string, } func intToStringSlice(is []int) []string { - ss := make([]string, 0, len(is)) + ss := make([]string, len(is)) for i, x := range is { ss[i] = strconv.Itoa(x) }