From 19cf0aeff5800b462310d8b0548341ae5bb88543 Mon Sep 17 00:00:00 2001 From: Newnius Date: Mon, 29 Apr 2019 20:35:05 +0800 Subject: [PATCH] bugfix --- src/AllocatorFIFO.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/AllocatorFIFO.go b/src/AllocatorFIFO.go index ae6699d..b382d73 100644 --- a/src/AllocatorFIFO.go +++ b/src/AllocatorFIFO.go @@ -3,8 +3,7 @@ package main import ( "sync" "time" - "fmt" -) + ) type AllocatorFIFO struct { history []*Job @@ -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