[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Bugfix: some things (like ctrl-z) can make a second take mo...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] Bugfix: some things (like ctrl-z) can make a second take mo...
- From: nickm@seul.org (Nick Mathewson)
- Date: Tue, 13 Jul 2004 14:08:00 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Tue, 13 Jul 2004 14:08:11 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
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();