1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 16:16:44 +00:00

update fair

This commit is contained in:
2020-05-31 18:56:47 +08:00
parent 41242024b6
commit 4e9e9a408e

View File

@@ -157,9 +157,9 @@ func (scheduler *SchedulerFair) Start() {
scheduler.queuesQuota[queue] = &ResourceCount{} scheduler.queuesQuota[queue] = &ResourceCount{}
} }
/* one cannot borrow more before he has cleared his IOUs */ /* one cannot borrow more before he has cleared his IOUs */
if len(scheduler.IOUs[queue]) > 0 { //if len(scheduler.IOUs[queue]) > 0 {
continue // continue
} //}
needGPU := numberGPUtmp*1000 - quotas[queue].NumberGPU needGPU := numberGPUtmp*1000 - quotas[queue].NumberGPU
/* the less, the better */ /* the less, the better */