Skip to content
This repository has been archived by the owner on Sep 25, 2022. It is now read-only.

Commit

Permalink
Fix the scheduling bug, fixes docker-archive#253
Browse files Browse the repository at this point in the history
Signed-off-by: Jessica B. Hamrick <[email protected]>
  • Loading branch information
jhamrick authored and Thijs Elferink committed Mar 6, 2015
1 parent 00d39c9 commit df7524c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/strategy/binpacking.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (p *BinPackingPlacementStrategy) PlaceContainer(config *dockerclient.Contai
if config.Memory > 0 {
memoryScore = (node.ReservedMemory() + config.Memory) * 100 / nodeMemory
}
var total = ((cpuScore + memoryScore) / 200) * 100
var total = (cpuScore + memoryScore) / 2

if cpuScore <= 100 && memoryScore <= 100 {
scores = append(scores, &score{node: node, score: total})
Expand Down

0 comments on commit df7524c

Please sign in to comment.