update pluginToClusterScores length from filterPlugins length to scorePlugins length

Signed-off-by: changzhen <changzhen5@huawei.com>
This commit is contained in:
changzhen 2024-07-30 20:51:25 +08:00
parent ff0b84d588
commit 0735ec0202
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ func (frw *frameworkImpl) RunScorePlugins(
defer func() {
metrics.FrameworkExtensionPointDuration.WithLabelValues(score, result.Code().String()).Observe(utilmetrics.DurationInSeconds(startTime))
}()
pluginToClusterScores := make(framework.PluginToClusterScores, len(frw.filterPlugins))
pluginToClusterScores := make(framework.PluginToClusterScores, len(frw.scorePlugins))
for _, p := range frw.scorePlugins {
var scoreList framework.ClusterScoreList
for _, cluster := range clusters {