From 16821360fe936e99f7ae8d3e599dbb632ecb3da0 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 17 Feb 2025 22:16:20 +0100 Subject: [PATCH] Plugins: fix watchdog interval --- plugin/watchdog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/watchdog.go b/plugin/watchdog.go index f7e3dd32e..81535c6b9 100644 --- a/plugin/watchdog.go +++ b/plugin/watchdog.go @@ -47,7 +47,7 @@ func NewWatchDogFromConfig(ctx context.Context, other map[string]interface{}) (P } func (o *watchdogPlugin) wdt(ctx context.Context, set func() error) { - for tick := time.Tick(o.timeout); ; { + for tick := time.Tick(o.timeout / 2); ; { select { case <-tick: if err := set(); err != nil {