Adjust DirectoryMonitor rate limiting to filter multi-inotify events

This commit is contained in:
Kristóf Tóth 2018-03-20 11:40:20 +01:00
parent b1f4842dc7
commit 6c5361846b

View File

@ -23,7 +23,7 @@ class WebideReloadEventHandler(FileSystemEventHandler):
def resume(self):
self._paused = False
@RateLimiter(rate_per_second=5)
@RateLimiter(rate_per_second=2)
def on_modified(self, event):
if self._paused: return
if self.ignore > 0: