Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

timeout is now seconds and float

  • Loading branch information...
commit 27302b4f643cd3967289ff11d811309a0b05f630 1 parent 4be382a
Tobias Oberstein authored

Showing 1 changed file with 1 addition and 3 deletions. Show diff stats Hide diff stats

  1. 4  txkqreactor/kqreactor.py
4  txkqreactor/kqreactor.py
@@ -127,9 +127,7 @@ def getWriters(self):
127 127
     def doKEvent(self, timeout):
128 128
         """Poll the kqueue for new events."""
129 129
         if timeout is None:
130  
-            timeout = 1000
131  
-        else:
132  
-            timeout = int(timeout * 1000) # convert seconds to milliseconds
  130
+            timeout = 0.001 # 1ms
133 131
 
134 132
         try:
135 133
             l = self._kq.control([], len(self._selectables), timeout)

0 notes on commit 27302b4

Please sign in to comment.
Something went wrong with that request. Please try again.