Loading changes/ticket26009 0 → 100644 +9 −0 Original line number Diff line number Diff line o Minor features (mainloop): - Move responsibility for keeping track of Tor's uptime from a nce-per-second callback to a callback that is only scheduled as needed. Once enough items are removed from our once-per-second callback, we can eliminate it entirely to conserve CPU when idle. Closes ticket 26009. src/or/main.c +5 −1 Original line number Diff line number Diff line Loading @@ -2576,8 +2576,12 @@ second_elapsed_callback(periodic_timer_t *timer, void *arg) n_libevent_errors = 0; /* log_notice(LD_GENERAL, "Tick."); */ now = time(NULL); /* We don't need to do this once-per-second any more: time-updating is * only in this callback _because it is a callback_. It should be fine * to disable this callback, and the time will still get updated. */ update_current_time(now); /* the second has rolled over. check more stuff. */ Loading Loading
changes/ticket26009 0 → 100644 +9 −0 Original line number Diff line number Diff line o Minor features (mainloop): - Move responsibility for keeping track of Tor's uptime from a nce-per-second callback to a callback that is only scheduled as needed. Once enough items are removed from our once-per-second callback, we can eliminate it entirely to conserve CPU when idle. Closes ticket 26009.
src/or/main.c +5 −1 Original line number Diff line number Diff line Loading @@ -2576,8 +2576,12 @@ second_elapsed_callback(periodic_timer_t *timer, void *arg) n_libevent_errors = 0; /* log_notice(LD_GENERAL, "Tick."); */ now = time(NULL); /* We don't need to do this once-per-second any more: time-updating is * only in this callback _because it is a callback_. It should be fine * to disable this callback, and the time will still get updated. */ update_current_time(now); /* the second has rolled over. check more stuff. */ Loading