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

update fair

This commit is contained in:
2020-05-28 11:23:27 +08:00
parent d16df29b50
commit c044d43490
3 changed files with 10 additions and 7 deletions

View File

@@ -320,7 +320,7 @@ func (scheduler *SchedulerFair) UpdateQuota() {
pool := InstanceOfResourcePool()
available := pool.TotalGPU - usingGPU - allocatedGPU
if available == 0 {
if available <= 0 {
return
}
log.Info("Can allocate ", available)