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