잘못된 코드 수정3
This commit is contained in:
parent
fa3950cd85
commit
219d5d7987
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue