Browse Source

Add mising EV_DEFAULT_UC in ev_now()

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
ca0038bf2f
  1. 4
      src/node.cc

4
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) {

Loading…
Cancel
Save