fix(watchaggregator): properly convert floating-point time duration (fixes #10899) (#10900)

Signed-off-by: Jakob Borg <[email protected]>
This commit is contained in:
Jakob Borg authored and GitHub committed 2026-09-30 05:53:20 +00:00
1 parent b223f729c6
commit 9bb4747df2
1 file changed
+1 -1
+1 -1
View File
@@ -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