Remove total variable

Signed-off-by: Jessica B. Hamrick <jhamrick@berkeley.edu>
This commit is contained in:
Jessica B. Hamrick 2015-01-20 11:42:02 -08:00
parent 11ebdb050c
commit 63109bb0f2
1 changed files with 1 additions and 2 deletions

View File

@ -41,10 +41,9 @@ func (p *BinPackingPlacementStrategy) PlaceContainer(config *dockerclient.Contai
if config.Memory > 0 {
memoryScore = (node.ReservedMemory() + config.Memory) * 100 / nodeMemory
}
var total = (cpuScore + memoryScore) / 2
if cpuScore <= 100 && memoryScore <= 100 {
scores = append(scores, &score{node: node, score: total})
scores = append(scores, &score{node: node, score: cpuScore + memoryScore})
}
}