tweaked idle polling timings
This commit is contained in:
parent
0a86683392
commit
d01d9edb78
|
@ -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():
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue