diff options
author | root <root> | 2010-10-15 22:44:41 +0000 |
---|---|---|
committer | root <root> | 2010-10-15 22:44:41 +0000 |
commit | fdc074f34b5284968cb4174e9c5d2bc253d70d4c (patch) | |
tree | 6ce10fe71c36eadc30790d780d0ceb70862ec709 /ev_kqueue.c | |
parent | 434c3b77aa4f5ced4961b2ec6b3397c9c683d0fd (diff) |
clean up tv/ts handling
Diffstat (limited to 'ev_kqueue.c')
-rw-r--r-- | ev_kqueue.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ev_kqueue.c b/ev_kqueue.c index 2ab8a58..ab6000e 100644 --- a/ev_kqueue.c +++ b/ev_kqueue.c @@ -97,8 +97,7 @@ kqueue_poll (EV_P_ ev_tstamp timeout) } EV_RELEASE_CB; - ts.tv_sec = (time_t)timeout; - ts.tv_nsec = (long)((timeout - (ev_tstamp)ts.tv_sec) * 1e9); + EV_SET_TV (tv, timeout); res = kevent (backend_fd, kqueue_changes, kqueue_changecnt, kqueue_events, kqueue_eventmax, &ts); EV_ACQUIRE_CB; kqueue_changecnt = 0; |