Fix out of bounds bug

This commit is contained in:
Lou Knauer 2022-05-05 10:03:54 +02:00
parent 97806669f9
commit cdfb144b82

View File

@ -603,7 +603,7 @@ func (ccms *CCMetricStore) LoadNodeData(cluster string, metrics, nodes []string,
} }
func intToStringSlice(is []int) []string { func intToStringSlice(is []int) []string {
ss := make([]string, 0, len(is)) ss := make([]string, len(is))
for i, x := range is { for i, x := range is {
ss[i] = strconv.Itoa(x) ss[i] = strconv.Itoa(x)
} }