Merge "[zmq] Matchmaker redis available time"

This commit is contained in:
Jenkins 2016-12-08 00:06:05 +00:00 committed by Gerrit Code Review
commit 92f7bf04a8

View File

@ -346,7 +346,7 @@ class MatchmakerRedisAvailabilityUpdater(zmq_updater.UpdaterBase):
# reading from # reading from
redis_instance._is_available = True redis_instance._is_available = True
redis_instance._ready_from = time.time() + \ redis_instance._ready_from = time.time() + \
self.conf.oslo_messaging_zmq.zmq_target_update self.conf.oslo_messaging_zmq.zmq_target_expire
else: else:
fraction_of_available_instances += 1 fraction_of_available_instances += 1
fraction_of_available_instances /= \ fraction_of_available_instances /= \