X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=python%2Fovs%2Fpoller.py;h=2a0b2ecbb3be29653e9571222fdb7ff46df044fa;hb=110b54816bb56b8ba4878812ad300a3a277abb06;hp=57417c481d008d7bd2149c7364b093b03f9cb7cb;hpb=c0c2489aabc0d19495909ac7391ea7427d9b458a;p=sliver-openvswitch.git diff --git a/python/ovs/poller.py b/python/ovs/poller.py index 57417c481..2a0b2ecbb 100644 --- a/python/ovs/poller.py +++ b/python/ovs/poller.py @@ -15,6 +15,7 @@ import errno import logging import select +import ovs.timeval class Poller(object): """High-level wrapper around the "poll" system call. @@ -62,15 +63,15 @@ class Poller(object): 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.""" - now = Time.msec() + now = ovs.timeval.msec() if msec <= now: self.immediate_wake() else: