From c573b4acaaae8d42f01c018a321685aaa4e9c986 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 13 Jul 2004 18:07:57 +0000 Subject: [PATCH] Bugfix: some things (like ctrl-z) can make a second take more than one second svn:r2042 --- trunk/src/or/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/or/main.c b/trunk/src/or/main.c index 24fd1d31cb..6b3aa68672 100644 --- a/trunk/src/or/main.c +++ b/trunk/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();