From e8b4c7d6c338554ba2841daf5ec29a898459a6f5 Mon Sep 17 00:00:00 2001 From: MinRK Date: Tue, 22 Nov 2011 15:46:19 -0800 Subject: [PATCH] fix milliseconds -> seconds typo in ioloop, a variable was called milliseconds, but its units were seconds, which is confusing. --- tornado/ioloop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tornado/ioloop.py b/tornado/ioloop.py index 12ef90da0..6286ddc84 100644 --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -262,8 +262,8 @@ class IOLoop(object): 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: -- 2.47.3