Fix linting

This commit is contained in:
Preetha Appan
2018-07-20 09:33:47 -05:00
parent b5042067e7
commit 3d3a5aa4ad

View File

@@ -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