Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/opendnscache/lib-opendnscache/fdevent_kqueue.c b/opendnscache/lib-opendnscache/fdevent_kqueue.c
- index df3d645..f77c015 100644
- --- a/opendnscache/lib-opendnscache/fdevent_kqueue.c
- +++ b/opendnscache/lib-opendnscache/fdevent_kqueue.c
- @@ -92,7 +92,7 @@ fdevent_wait(int64_t deadline, int64_t now)
- timeout = 0;
- }
- timeout_ts.tv_sec = timeout / 1000;
- - timeout_ts.tv_nsec = timeout % 1000;
- + timeout_ts.tv_nsec = (timeout % 1000) * 1000000;
- if ((ready = kevent(kqueuefd, NULL, 0, t_events, events_len,
- timeout_ts_p)) < 0
- && errno != EINTR)
Add Comment
Please, Sign In to add comment