From 9bb4747df2f757c84ae3fbe78c5965a8c3bc76a7 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 30 Sep 2026 07:53:20 +0200 Subject: [PATCH] fix(watchaggregator): properly convert floating-point time duration (fixes #10899) (#10900) Signed-off-by: Jakob Borg --- lib/watchaggregator/aggregator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/watchaggregator/aggregator.go b/lib/watchaggregator/aggregator.go index 4ab439702..e2111ba7f 100644 --- a/lib/watchaggregator/aggregator.go +++ b/lib/watchaggregator/aggregator.go @@ -436,7 +436,7 @@ func (a *aggregator) CommitConfiguration(_, to config.Configuration) bool { } func (a *aggregator) updateConfig(folderCfg config.FolderConfiguration) { - a.notifyDelay = time.Duration(folderCfg.FSWatcherDelayS) * time.Second + a.notifyDelay = time.Duration(folderCfg.FSWatcherDelayS * float64(time.Second)) if maxDelay := folderCfg.FSWatcherTimeoutS; maxDelay > 0 { // FSWatcherTimeoutS is set explicitly so use that, but it also // can't be lower than FSWatcherDelayS