[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Clean up some logging and interfaces



Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv1670/src/or

Modified Files:
	command.c 
Log Message:
Clean up some logging and interfaces

Index: command.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/command.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- command.c	20 Nov 2004 12:55:41 -0000	1.73
+++ command.c	23 Nov 2004 00:08:26 -0000	1.74
@@ -49,6 +49,10 @@
   if (time_passed > 10000) { /* more than 10ms */
     log_fn(LOG_DEBUG,"That call just took %ld ms.",time_passed/1000);
   }
+  if (time_passed < 0) {
+    log_fn(LOG_INFO,"That call took us back in time!");
+    time_passed = 0;
+  }
   *time += time_passed;
 }