diff options
author | Ben Pfaff <blp@nicira.com> | 2010-05-12 12:53:07 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-05-26 11:46:59 -0700 |
commit | 7cf8b2660f9813fe080a3f4fcc975099cb36417a (patch) | |
tree | e508a0001469854f18e185c7b93b79af06c9906d /lib/mac-learning.c | |
parent | 8bf4bbe390af3f370e7e95d9237572ff750047a8 (diff) |
poll-loop: New function poll_timer_wait_until().
Many of poll_timer_wait()'s callers actually want to wait until a specific
time, so it's convenient for them to offer a function that does this.
Diffstat (limited to 'lib/mac-learning.c')
-rw-r--r-- | lib/mac-learning.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mac-learning.c b/lib/mac-learning.c index a9d414d2..f9859b6b 100644 --- a/lib/mac-learning.c +++ b/lib/mac-learning.c @@ -293,6 +293,6 @@ mac_learning_wait(struct mac_learning *ml) { if (!list_is_empty(&ml->lrus)) { struct mac_entry *e = mac_entry_from_lru_node(ml->lrus.next); - poll_timer_wait((e->expires - time_now()) * 1000); + poll_timer_wait_until(e->expires * 1000LL); } } |