poll-loop: New function poll_timer_wait_until().
[sliver-openvswitch.git] / ofproto / ofproto-sflow.c
index 60baf0e..37c1bb7 100644 (file)
@@ -607,6 +607,6 @@ void
 ofproto_sflow_wait(struct ofproto_sflow *os)
 {
     if (ofproto_sflow_is_enabled(os)) {
-        poll_timer_wait(os->next_tick * 1000 - time_msec());
+        poll_timer_wait_until(os->next_tick * 1000LL);
     }
 }