From ca0038bf2f077ed3db186866befb97bdc5c4c14f Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 6 Apr 2010 15:23:42 -0700 Subject: [PATCH] Add mising EV_DEFAULT_UC in ev_now() --- src/node.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node.cc b/src/node.cc index 63be87f5f9..5dacd68b97 100644 --- a/src/node.cc +++ b/src/node.cc @@ -105,7 +105,7 @@ static void CheckIdleness(EV_P_ ev_timer *watcher, int revents) { //fprintf(stderr, "check idle\n"); - ev_tstamp idle_time = ev_now() - last_active; + ev_tstamp idle_time = ev_now(EV_DEFAULT_UC) - last_active; if (idle_time > GC_INTERVAL) { if (needs_gc) { @@ -149,7 +149,7 @@ static void Activity(EV_P_ ev_check *watcher, int revents) { //fprintf(stderr, "activity, pending: %d\n", pending); if (pending) { - last_active = ev_now(); + last_active = ev_now(EV_DEFAULT_UC); ev_idle_stop(EV_DEFAULT_UC_ &gc_idle); if (!needs_gc) {