Browse files

set HeartMonitor.tic on start

Minor cosmetic change, but now `HeartMonitor.lifetime` actually reflects the lifetime of the object, rather than the lifetime of Unix :).
  • Loading branch information...
1 parent 5d96131 commit 5994d4fdd84de3bdcc9f573f3726999a4e767cc2 @minrk minrk committed Dec 11, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 IPython/parallel/controller/heartmonitor.py
View
1 IPython/parallel/controller/heartmonitor.py
@@ -86,6 +86,7 @@ def __init__(self, **kwargs):
self.pongstream.on_recv(self.handle_pong)
def start(self):
+ self.tic = time.time()
self.caller = ioloop.PeriodicCallback(self.beat, self.period, self.loop)
self.caller.start()

0 comments on commit 5994d4f

Please sign in to comment.