mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Add mising EV_DEFAULT_UC in ev_now()
This commit is contained in:
1 parent
d7a4501057
commit
ca0038bf2f
1 file changed
+2
-2
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user