Permalink
Browse files

inotify: lessen the update interval

There's no downside to waiting just a little bit longer before
triggering update events.  This also helps to lessen the impact of
inotify floods.

Related-to: #165

Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information...
1 parent 938d23a commit b30d19d90425ded9ecb8ca9cdce33e37f7905136 @davvid committed Mar 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 cola/inotify.py
View
@@ -105,7 +105,7 @@ def handle(self, path):
"""Queues up filesystem events for broadcast"""
with self._lock:
if self._timer is None:
- self._timer = Timer(0.333, self.broadcast)
+ self._timer = Timer(0.888, self.broadcast)
self._timer.start()

0 comments on commit b30d19d

Please sign in to comment.