tweaked idle polling timings

This commit is contained in:
Daniel Pavel 2013-06-08 16:27:03 +02:00
parent 0a86683392
commit d01d9edb78
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ class EventsListener(_threading.Thread):
last_tick = 0
# the first idle read -- delay it a bit, and make sure to stagger
# idle reads for multiple receivers
idle_reads = _IDLE_READS + (ihandle % 3) * 2
idle_reads = _IDLE_READS * 2 + (ihandle % 3) * 3
while self._active:
if self._queued_notifications.empty():

View File

@ -38,7 +38,7 @@ def _ghost(device):
# how often to poll devices that haven't updated their statuses on their own
# (through notifications)
_POLL_TICK = 3 * 60 # seconds
_POLL_TICK = 4 * 60 # seconds
class ReceiverListener(_listener.EventsListener):