Pass timeout in milliseconds to timer_wait

The OVS Python library expects milliseconds to be passed to
timer_wait and we were passing the value in seconds. This
just means that the poll() wakes up more often than it needs
to. Changing this probably improves performance a little, but
doesn't change any user observable behavior.

Change-Id: Iae4b682c0774e749eb48cde67cd9748d7dfe053c
(cherry picked from commit 47fd1bc315)
This commit is contained in:
Terry Wilson 2016-07-22 22:08:01 -05:00 committed by Jakub Libosvar
parent 938c0cce41
commit dcea3f349c
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class Connection(object):
self.poller.fd_wait(self.txns.alert_fileno, poller.POLLIN)
#TODO(jlibosva): Remove next line once losing connection to ovsdb
# is solved.
self.poller.timer_wait(self.timeout)
self.poller.timer_wait(self.timeout * 1000)
self.poller.block()
self.idl.run()
txn = self.txns.get_nowait()