From 3d3a5aa4ad1028358a4841cab60b32dcbfed37a0 Mon Sep 17 00:00:00 2001 From: Preetha Appan Date: Fri, 20 Jul 2018 09:33:47 -0500 Subject: [PATCH] Fix linting --- scheduler/rank.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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