summaryrefslogtreecommitdiff
path: root/src/or/command.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-23 00:08:26 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-23 00:08:26 +0000
commitcd702643770fb17c00a67f8f5154e6852acb5e1c (patch)
tree234e4dad86a8c9e60d82479dbd815187f9eaaa0b /src/or/command.c
parent6fc834ab16936530166aa087d9469048c65b1697 (diff)
downloadtor-cd702643770fb17c00a67f8f5154e6852acb5e1c.tar.gz
tor-cd702643770fb17c00a67f8f5154e6852acb5e1c.zip
Clean up some logging and interfaces
svn:r2945
Diffstat (limited to 'src/or/command.c')
-rw-r--r--src/or/command.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/command.c b/src/or/command.c
index e781a523eb..01568d279b 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -49,6 +49,10 @@ static void command_time_process_cell(cell_t *cell, connection_t *conn, int *tim
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;
}