1
0
Fork 0

잘못된 변수명 수정

This commit is contained in:
Sangbum Kim 2017-09-07 01:26:04 +09:00
parent 08e83afe52
commit a3f4f54439
1 changed files with 23 additions and 23 deletions

View File

@ -15,6 +15,7 @@ import (
"sync"
"syscall"
"time"
"amuz.es/src/infra/cpu_ctrl/pid"
"github.com/coreos/go-systemd/daemon"
@ -140,14 +141,13 @@ func CpuTempetureScraper(processorCount int, notifier <-chan TempetureChange, er
noobs := make([]int, processorCount)
controllers := make([]pid.Controller, 0, processorCount)
for i := 0; i < processorCount; i++ {
controller:=pid.New(PID)
controller := pid.New(P, I, D)
controller.SetSetPoint(SetPoint)
controller.SetSampleTime(SampleTime)
controller.SetWindupGuard(WindupGuard)
controllers := append(controllers, controller)
}
for {
select {
case change := <-notifier: