From: Nick Mathewson Date: Tue, 13 Jul 2004 18:07:57 +0000 (+0000) Subject: Bugfix: some things (like ctrl-z) can make a second take more than one second X-Git-Tag: tor-0.0.8pre1~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9365f9ed58c783efe93abe020fd6f53e0068a8b;p=thirdparty%2Ftor.git Bugfix: some things (like ctrl-z) can make a second take more than one second svn:r2042 --- diff --git a/src/or/main.c b/src/or/main.c index 24fd1d31cb..6b3aa68672 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -555,7 +555,7 @@ static int prepare_for_poll(void) { 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(); run_scheduled_events(now.tv_sec); assert_all_pending_dns_resolves_ok();