mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-13 07:46:43 +00:00
update shceduler_fair
This commit is contained in:
@@ -341,6 +341,9 @@ func (scheduler *SchedulerFair) UpdateNextQueue() {
|
||||
}
|
||||
|
||||
for k, v := range scheduler.resourceAllocations {
|
||||
if t, ok := scheduler.queues[k]; !ok || len(t) == 0 {
|
||||
continue
|
||||
}
|
||||
tmp := 0.0
|
||||
tmp += float64(v.CPU) / CPU
|
||||
tmp += float64(v.Memory) / Memory
|
||||
|
||||
Reference in New Issue
Block a user