summaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-06-15 09:03:15 +0000
committerRoger Dingledine <arma@torproject.org>2006-06-15 09:03:15 +0000
commit4e4cc9aa277893fc9bb32abb0d82cd1922e18645 (patch)
tree88b7d2ca3159167d690408a9fbe164b0b324d01e /src/or/circuitbuild.c
parent53d63e25a5614830f1f96558c6c1004dd27e30c1 (diff)
downloadtor-4e4cc9aa277893fc9bb32abb0d82cd1922e18645.tar.gz
tor-4e4cc9aa277893fc9bb32abb0d82cd1922e18645.zip
lower the number of seconds before we yell about clock jump.
and make the yelling only happen if you're a server. svn:r6625
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index ad2b2f2bf8..919c371073 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -660,9 +660,13 @@ circuit_send_next_onion_skin(circuit_t *circ)
void
circuit_note_clock_jumped(int seconds_elapsed)
{
- log(LOG_WARN, LD_GENERAL,
- "Please report: your clock just jumped %d seconds forward; "
- "assuming established circuits no longer work.", seconds_elapsed);
+ if (server_mode(get_options()))
+ log(LOG_WARN, LD_GENERAL,
+ "Please report: your clock just jumped %d seconds forward; "
+ "assuming established circuits no longer work.", seconds_elapsed);
+ else
+ log(LOG_NOTICE, LD_GENERAL, "Your clock just jumped %d seconds forward; "
+ "assuming established circuits no longer work.", seconds_elapsed);
has_completed_circuit=0; /* so it'll log when it works again */
circuit_mark_all_unused_circs();
circuit_expire_all_dirty_circs();