diff --git a/consumer/speed_controller.go b/consumer/speed_controller.go index 6325092..a741fee 100644 --- a/consumer/speed_controller.go +++ b/consumer/speed_controller.go @@ -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: