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_select.c | |
parent | 434c3b77aa4f5ced4961b2ec6b3397c9c683d0fd (diff) |
clean up tv/ts handling
Diffstat (limited to 'ev_select.c')
-rw-r--r-- | ev_select.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ev_select.c b/ev_select.c index b11a413..05486e0 100644 --- a/ev_select.c +++ b/ev_select.c @@ -141,8 +141,7 @@ select_poll (EV_P_ ev_tstamp timeout) int fd_setsize; EV_RELEASE_CB; - tv.tv_sec = (long)timeout; - tv.tv_usec = (long)((timeout - (ev_tstamp)tv.tv_sec) * 1e6); + EV_TV_SET (tv, timeout); #if EV_SELECT_USE_FD_SET fd_setsize = sizeof (fd_set); |