Skip to content

Commit

Permalink
inotify: lessen the update interval
Browse files Browse the repository at this point in the history
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: git-cola#165

Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information
davvid committed Mar 23, 2013
1 parent 938d23a commit b30d19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cola/inotify.py
Expand Up @@ -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()


Expand Down

0 comments on commit b30d19d

Please sign in to comment.