]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
line too long 1744/head
authorzhulongcheng <zhulongcheng.me@gmail.com>
Wed, 8 Jun 2016 14:41:27 +0000 (22:41 +0800)
committerzhulongcheng <zhulongcheng.me@gmail.com>
Wed, 8 Jun 2016 14:41:27 +0000 (22:41 +0800)
tornado/ioloop.py

index 20cc982465830bafb5b34f66a20426d3828b53ce..cadb41161a7767156994821352741e9f0390be27 100644 (file)
@@ -1050,6 +1050,7 @@ class PeriodicCallback(object):
 
             if self._next_timeout <= current_time:
                 callback_time_sec = self.callback_time / 1000.0
-                self._next_timeout += (math.floor((current_time - self._next_timeout) / callback_time_sec) + 1) * callback_time_sec
+                self._next_timeout += (math.floor((current_time - self._next_timeout) /
+                                                  callback_time_sec) + 1) * callback_time_sec
 
             self._timeout = self.io_loop.add_timeout(self._next_timeout, self._run)