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