From bca37ebec00d37baf04ce951328add4f2a5b7e52 Mon Sep 17 00:00:00 2001 From: Sangbum Kim Date: Wed, 13 Sep 2017 00:42:29 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=98=EB=AA=BB=EB=90=9C=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=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 | 1 + 1 file changed, 1 insertion(+) diff --git a/consumer/speed_controller.go b/consumer/speed_controller.go index 6ac46cb..ed3469a 100644 --- a/consumer/speed_controller.go +++ b/consumer/speed_controller.go @@ -55,6 +55,7 @@ func (c *fanControl) StartControl() { case <-ticker: go c.applyFanspeed(pastFanSpeedList, newFanSpeedList) pastFanSpeedList, newFanSpeedList = newFanSpeedList, make([]int, c.processorCount) + copy(newFanSpeedList, pastFanSpeedList) case changedSpeed := <-c.fanSpeedConsumer: newFanSpeedList[changedSpeed.Id] = changedSpeed.FanSpeed case <-c.handler.Done():