1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-13 07:46:43 +00:00
This commit is contained in:
2019-04-29 20:35:05 +08:00
parent 919b8be5eb
commit 19cf0aeff5

View File

@@ -3,7 +3,6 @@ package main
import (
"sync"
"time"
"fmt"
)
type AllocatorFIFO struct {
@@ -99,10 +98,10 @@ func (allocator *AllocatorFIFO) requestResource(task Task) NodeStatus {
for j := range node.Status {
if res.Status[i].UUID == node.Status[j].UUID {
node.Status[j].MemoryAllocated = task.MemoryGPU
fmt.Println(node.Status[j].UUID, res.Status[i].UUID)
}
}
}
break
}
}
return res