Skip to content

Commit

Permalink
timeout is now seconds and float
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Oberstein committed Nov 4, 2011
1 parent 4be382a commit 27302b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions txkqreactor/kqreactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ def getWriters(self):
def doKEvent(self, timeout):
"""Poll the kqueue for new events."""
if timeout is None:
timeout = 1000
else:
timeout = int(timeout * 1000) # convert seconds to milliseconds
timeout = 0.001 # 1ms

try:
l = self._kq.control([], len(self._selectables), timeout)
Expand Down

0 comments on commit 27302b4

Please sign in to comment.