diff --git a/scheduler/rank.go b/scheduler/rank.go index 37e9adb67..f73ad0bcb 100644 --- a/scheduler/rank.go +++ b/scheduler/rank.go @@ -240,7 +240,7 @@ OUTER: // Score the fit normally otherwise fitness := structs.ScoreFit(option.Node, util) - normalizedFit := float64(fitness) / float64(binPackingMaxFitScore) + normalizedFit := fitness / binPackingMaxFitScore option.Scores = append(option.Scores, normalizedFit) iter.ctx.Metrics().ScoreNode(option.Node, "binpack", normalizedFit) return option