1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-16 16:36:45 +00:00
This commit is contained in:
2020-05-27 14:20:32 +08:00
parent 5d8693eb5b
commit bbc8ad2317
2 changed files with 5 additions and 5 deletions

View File

@@ -68,9 +68,9 @@ func fastBestFit(nodes []NodeStatus, tasks []Task) Allocation {
minCost := math.MaxFloat64
var best *NodeStatus
if task.IsPS {
eva.factorPack = -1.0
eva.factorSpread = 1.0
} else {
eva.factorPack = 1.0
eva.factorSpread = -1.0
}
for i, node := range nodes {
if _, ok := allocation.TasksOnNode[node.ClientID]; !ok {