aboutsummaryrefslogtreecommitdiff
path: root/src/or/command.c
diff options
context:
space:
mode:
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 e781a523e..01568d279 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;
}