succd: log rate of change
This commit is contained in:
parent
9ad6ce7dad
commit
9db2213fa6
|
@ -123,6 +123,8 @@ func (d *daemon) processOnce(_ context.Context) error {
|
||||||
d.aboveRough.process(float64(mbar))
|
d.aboveRough.process(float64(mbar))
|
||||||
d.aboveHigh.process(float64(mbar))
|
d.aboveHigh.process(float64(mbar))
|
||||||
|
|
||||||
|
klog.Infof("rate of change: %f", d.piraniRateOfChange())
|
||||||
|
|
||||||
// max rate of 1.0 in 500 ms because ringbuffer holds 5 values
|
// max rate of 1.0 in 500 ms because ringbuffer holds 5 values
|
||||||
if d.piraniRateOfChange() > 2.0 {
|
if d.piraniRateOfChange() > 2.0 {
|
||||||
if !d.failsafe {
|
if !d.failsafe {
|
||||||
|
|
Loading…
Reference in a new issue