1
0
Fork 0

잘못된 코드 수정3

This commit is contained in:
Sangbum Kim 2017-09-13 00:56:15 +09:00
parent fa3950cd85
commit 219d5d7987
1 changed files with 0 additions and 1 deletions

View File

@ -55,7 +55,6 @@ func (c *fanControl) StartControl() {
case <-ticker: case <-ticker:
if !compareFanSpeed(pastFanSpeedList, newFanSpeedList) { if !compareFanSpeed(pastFanSpeedList, newFanSpeedList) {
copy(pastFanSpeedList, newFanSpeedList) copy(pastFanSpeedList, newFanSpeedList)
newFanSpeedList = make([]int, c.processorCount)
go c.applyFanspeed(pastFanSpeedList) go c.applyFanspeed(pastFanSpeedList)
} }
case changedSpeed := <-c.fanSpeedConsumer: case changedSpeed := <-c.fanSpeedConsumer: