mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Bugfix: some things (like ctrl-z) can make a second take more than one second
svn:r2042
This commit is contained in:
parent
d37850bb98
commit
e9365f9ed5
@ -555,7 +555,7 @@ static int prepare_for_poll(void) {
|
|||||||
|
|
||||||
if(now.tv_sec > current_second) { /* the second has rolled over. check more stuff. */
|
if(now.tv_sec > current_second) { /* the second has rolled over. check more stuff. */
|
||||||
|
|
||||||
++stats_n_seconds_uptime;
|
stats_n_seconds_uptime += (now.tv_sec - current_second);
|
||||||
assert_all_pending_dns_resolves_ok();
|
assert_all_pending_dns_resolves_ok();
|
||||||
run_scheduled_events(now.tv_sec);
|
run_scheduled_events(now.tv_sec);
|
||||||
assert_all_pending_dns_resolves_ok();
|
assert_all_pending_dns_resolves_ok();
|
||||||
|
Loading…
Reference in New Issue
Block a user