mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Fix linting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user