Guest User

Untitled

a guest
Dec 11th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. diff --git a/opendnscache/lib-opendnscache/fdevent_kqueue.c b/opendnscache/lib-opendnscache/fdevent_kqueue.c
  2. index df3d645..f77c015 100644
  3. --- a/opendnscache/lib-opendnscache/fdevent_kqueue.c
  4. +++ b/opendnscache/lib-opendnscache/fdevent_kqueue.c
  5. @@ -92,7 +92,7 @@ fdevent_wait(int64_t deadline, int64_t now)
  6. timeout = 0;
  7. }
  8. timeout_ts.tv_sec = timeout / 1000;
  9. - timeout_ts.tv_nsec = timeout % 1000;
  10. + timeout_ts.tv_nsec = (timeout % 1000) * 1000000;
  11. if ((ready = kevent(kqueuefd, NULL, 0, t_events, events_len,
  12. timeout_ts_p)) < 0
  13. && errno != EINTR)
Add Comment
Please, Sign In to add comment