mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 13:29:05 +01:00
Fix out of bounds bug
This commit is contained in:
parent
97806669f9
commit
cdfb144b82
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user