잘못된 변수명 수정
This commit is contained in:
parent
08e83afe52
commit
a3f4f54439
4
main.go
4
main.go
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue