From 9db2213fa6a94b1732077385112cfc4b7df9f6bb Mon Sep 17 00:00:00 2001 From: zdmx Date: Fri, 27 Sep 2024 23:06:56 +0200 Subject: [PATCH] succd: log rate of change --- succbone/succd/process.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/succbone/succd/process.go b/succbone/succd/process.go index 4906963..f63748b 100644 --- a/succbone/succd/process.go +++ b/succbone/succd/process.go @@ -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 {