space out watcher timing

This commit is contained in:
Sky Johnson 2025-03-14 22:47:04 -05:00
parent cef93357c3
commit cb86b13bba

View File

@ -15,8 +15,8 @@ const (
defaultPollInterval = 1 * time.Second // Initial polling interval defaultPollInterval = 1 * time.Second // Initial polling interval
extendedPollInterval = 5 * time.Second // Extended polling interval after inactivity extendedPollInterval = 5 * time.Second // Extended polling interval after inactivity
maxPollInterval = 10 * time.Second // Maximum polling interval after long inactivity maxPollInterval = 10 * time.Second // Maximum polling interval after long inactivity
inactivityThreshold = 30 * time.Second // Time before extending polling interval inactivityThreshold = 5 * time.Minute // Time before extending polling interval
secondExtendThreshold = 2 * time.Minute // Time before second extension secondExtendThreshold = 30 * time.Minute // Time before second extension
) )
// Default debounce time between detected change and callback // Default debounce time between detected change and callback