Skip to content

Commit ab4bc33

Browse files
author
James Boulton
committed
relax polling to reduce cpu usage
1 parent bd1bbc2 commit ab4bc33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dashio/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ def run(self):
734734

735735
while self.running:
736736
try:
737-
socks = dict(poller.poll(1))
737+
socks = dict(poller.poll(100))
738738
except zmq.error.ContextTerminated:
739739
break
740740
if self.rx_zmq_sub in socks:

0 commit comments

Comments
 (0)