From ae9ac4ea0e9dc5ceea27ab3311537ee9cd428bea Mon Sep 17 00:00:00 2001 From: zdmx Date: Fri, 27 Sep 2024 23:32:14 +0200 Subject: [PATCH] succd: reset failsafe only after vent --- succbone/succd/process.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/succbone/succd/process.go b/succbone/succd/process.go index 643d053..7323046 100644 --- a/succbone/succd/process.go +++ b/succbone/succd/process.go @@ -131,8 +131,10 @@ func (d *daemon) processOnce(_ context.Context) error { } } else { if d.failsafe { - d.failsafe = false - klog.Infof("Values are plausible again; quitting failsafe mode") + if mbar >= 1e-2 { + d.failsafe = false + klog.Infof("Values are plausible again; quitting failsafe mode") + } } }