[or-cvs] Bugfix: some things (like ctrl-z) can make a second take mo...
Nick Mathewson
nickm at seul.org
Tue Jul 13 18:08:00 UTC 2004
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv5869/src/or
Modified Files:
main.c
Log Message:
Bugfix: some things (like ctrl-z) can make a second take more than one second
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.291
retrieving revision 1.292
diff -u -d -r1.291 -r1.292
--- main.c 13 Jul 2004 16:58:01 -0000 1.291
+++ main.c 13 Jul 2004 18:07:57 -0000 1.292
@@ -555,7 +555,7 @@
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();
More information about the tor-commits
mailing list