잘못된 코드 수정3
This commit is contained in:
parent
fa3950cd85
commit
219d5d7987
|
@ -55,7 +55,6 @@ func (c *fanControl) StartControl() {
|
|||
case <-ticker:
|
||||
if !compareFanSpeed(pastFanSpeedList, newFanSpeedList) {
|
||||
copy(pastFanSpeedList, newFanSpeedList)
|
||||
newFanSpeedList = make([]int, c.processorCount)
|
||||
go c.applyFanspeed(pastFanSpeedList)
|
||||
}
|
||||
case changedSpeed := <-c.fanSpeedConsumer:
|
||||
|
|
Loading…
Reference in New Issue