From ca421b372e4daeabb2656c83874be1256c3e151a Mon Sep 17 00:00:00 2001 From: Sangbum Kim Date: Mon, 11 Sep 2017 01:02:56 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=98=EB=AA=BB=EB=90=9C=20=EB=A3=A8?= =?UTF-8?q?=ED=94=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consumer/speed_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consumer/speed_controller.go b/consumer/speed_controller.go index e0a482d..a26cc60 100644 --- a/consumer/speed_controller.go +++ b/consumer/speed_controller.go @@ -52,10 +52,11 @@ func (c *fanControl) StartControl() { for { newFanSpeedList := make([]int, c.processorCount) + checker: for { select { case <-ticker: - break + break checker case changedSpeed := <-c.fanSpeedConsumer: newFanSpeedList[changedSpeed.Id] = changedSpeed.FanSpeed case <-c.handler.Done():