From 778f3e4c1f7f29c973c165f32c934b867e8e2db4 Mon Sep 17 00:00:00 2001 From: Newnius Date: Mon, 29 Apr 2019 20:29:56 +0800 Subject: [PATCH] update --- src/AllocatorFIFO.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AllocatorFIFO.go b/src/AllocatorFIFO.go index c9858e9..4dc0690 100644 --- a/src/AllocatorFIFO.go +++ b/src/AllocatorFIFO.go @@ -3,7 +3,8 @@ package main import ( "sync" "time" - ) + "fmt" +) type AllocatorFIFO struct { history []*Job @@ -98,6 +99,7 @@ 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) } } }