succd: log rate of change

This commit is contained in:
zdmx 2024-09-27 23:06:56 +02:00
parent 9ad6ce7dad
commit 9db2213fa6

View file

@ -123,6 +123,8 @@ func (d *daemon) processOnce(_ context.Context) error {
d.aboveRough.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
if d.piraniRateOfChange() > 2.0 {
if !d.failsafe {