##// END OF EJS Templates
Change initial values of monitor states for Py3 compatibility
Jan Schulz -
Show More
@@ -74,8 +74,10 b' class EngineFactory(RegistrationFactory):'
74 kernel = Instance(Kernel)
74 kernel = Instance(Kernel)
75
75
76 # States for the heartbeat monitoring
76 # States for the heartbeat monitoring
77 _hb_last_pinged = None
77 # Initial values for monitored and pinged must satisfy "monitored > pinged == False" so that
78 _hb_last_monitored = None
78 # during the first check no "missed" ping is reported. Must be floats for Python 3 compatibility.
79 _hb_last_pinged = 0.0
80 _hb_last_monitored = 0.0
79 _hb_missed_beats = 0
81 _hb_missed_beats = 0
80 # The zmq Stream which receives the pings from the Heart
82 # The zmq Stream which receives the pings from the Heart
81 _hb_listener = None
83 _hb_listener = None
General Comments 0
You need to be logged in to leave comments. Login now