Skip to content

Commit

Permalink
fix milliseconds -> seconds typo
Browse files Browse the repository at this point in the history
in ioloop, a variable was called milliseconds, but its units were seconds,
which is confusing.
  • Loading branch information
minrk committed Nov 22, 2011
1 parent fc7a3db commit e8b4c7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tornado/ioloop.py
Expand Up @@ -262,8 +262,8 @@ def start(self):
timeout = heapq.heappop(self._timeouts)
self._run_callback(timeout.callback)
else:
milliseconds = self._timeouts[0].deadline - now
poll_timeout = min(milliseconds, poll_timeout)
seconds = self._timeouts[0].deadline - now
poll_timeout = min(seconds, poll_timeout)
break

if self._callbacks:
Expand Down

0 comments on commit e8b4c7d

Please sign in to comment.