The timer_wait_until function in poller.py was using Time.msec to
figure out the current time. Unfortunately, Time.msec does not in
exist. Changed to use ovs.timeval.msec .
import errno
import logging
import select
import errno
import logging
import select
class Poller(object):
"""High-level wrapper around the "poll" system call.
class Poller(object):
"""High-level wrapper around the "poll" system call.
self.__timer_wait(msec)
def timer_wait_until(self, msec):
self.__timer_wait(msec)
def timer_wait_until(self, msec):
- """Causes the following call to self.block() to wake up when the
- current time, as returned by Time.msec(), reaches 'msec' or later. If
+ """Causes the following call to self.block() to wake up when the current
+ time, as returned by ovs.timeval.msec(), reaches 'msec' or later. If
'msec' is earlier than the current time, the following call to
self.block() will not block at all.
The timer registration is one-shot: only the following call to
self.block() is affected. The timer will need to be re-registered
after self.block() is called if it is to persist."""
'msec' is earlier than the current time, the following call to
self.block() will not block at all.
The timer registration is one-shot: only the following call to
self.block() is affected. The timer will need to be re-registered
after self.block() is called if it is to persist."""
+ now = ovs.timeval.msec()
if msec <= now:
self.immediate_wake()
else:
if msec <= now:
self.immediate_wake()
else: