1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-07 14:21:55 +00:00

update fair

This commit is contained in:
Newnius 2020-05-28 14:27:16 +08:00
parent 72c1a40e33
commit b0d6a6fc2e

View File

@ -382,7 +382,7 @@ func (scheduler *SchedulerFair) UpdateQuota() {
quota.Memory += (requests[queue].Memory / requests[queue].NumberGPU) * per * weight quota.Memory += (requests[queue].Memory / requests[queue].NumberGPU) * per * weight
} }
if availableGPU > 0 { if availableGPU > 0 {
for queue := range scheduler.queues { for _, queue := range candidates {
quota := scheduler.queuesQuota[queue] quota := scheduler.queuesQuota[queue]
quota.NumberGPU += availableGPU quota.NumberGPU += availableGPU
break break