diff --git a/master/master.go b/master/master.go index 4badccd4..7794e4c4 100644 --- a/master/master.go +++ b/master/master.go @@ -526,7 +526,7 @@ func (master *Master) SelectWorker(locations []Point) string { for _, worker := range master.workers { // if this worker is already overloaded, check the next one if worker.IsOverloaded() { - master.isDebugEnabled { + if master.isDebugEnabled { DEBUG.Println("Worker", worker.WID, " has reached its capacity of ", worker.Capacity, " with ", worker.Workload, " tasks running") } continue