summaryrefslogtreecommitdiff
path: root/ev_kqueue.c
diff options
context:
space:
mode:
authorroot <root>2007-11-22 15:40:56 +0000
committerroot <root>2007-11-22 15:40:56 +0000
commit9c50af16624fafcb456c9c46fa0c91ec46d8313d (patch)
tree7a3b50adb48e90c7a71b08ae3bd86cbffca53d3f /ev_kqueue.c
parent54a57c74105dc818388cec05e6fc874cdbfebf7f (diff)
fix ns calculation in ev_kqueue
Diffstat (limited to 'ev_kqueue.c')
-rw-r--r--ev_kqueue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ev_kqueue.c b/ev_kqueue.c
index 2c33e54..851f7e5 100644
--- a/ev_kqueue.c
+++ b/ev_kqueue.c
@@ -88,7 +88,8 @@ kqueue_poll (EV_P_ ev_tstamp timeout)
}
ts.tv_sec = (time_t)timeout;
- ts.tv_nsec = (long)(timeout - (ev_tstamp)ts.tv_sec) * 1e9;
+ ts.tv_nsec = (long)((timeout - (ev_tstamp)ts.tv_sec) * 1e9);
+ fprintf (stderr, "to %ld:%09ld %f\n", ts.tv_sec, ts.tv_nsec, res);//D
res = kevent (kqueue_fd, kqueue_changes, kqueue_changecnt, kqueue_events, kqueue_eventmax, &ts);
kqueue_changecnt = 0;