Plugins: fix watchdog interval

This commit is contained in:
andig 2025-02-17 22:16:20 +01:00
parent e963bcd03d
commit 16821360fe

View file

@ -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 {