aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-02-06 13:24:12 -0500
committerNick Mathewson <nickm@torproject.org>2014-02-06 13:24:12 -0500
commit534acf400e017adf489dfe3eca87ad82bbc15167 (patch)
tree7eca3c9695e1e821332856b55623429162a77bf5 /src
parent35115496511f64c08849a039c926910739467169 (diff)
parentedc6fa25706534b35259111797fade88c9b694da (diff)
downloadtor-534acf400e017adf489dfe3eca87ad82bbc15167.tar.gz
tor-534acf400e017adf489dfe3eca87ad82bbc15167.zip
Merge branch 'bug10485_024' into maint-0.2.4
Diffstat (limited to 'src')
-rw-r--r--src/or/main.c5
-rw-r--r--src/or/rephist.c1
-rw-r--r--src/or/status.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/src/or/main.c b/src/or/main.c
index deed798e80..bd23141b97 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1353,11 +1353,6 @@ run_scheduled_events(time_t now)
next_time_to_write_stats_files = next_write;
}
time_to_write_stats_files = next_time_to_write_stats_files;
-
- /* Also commandeer this opportunity to log how our circuit handshake
- * stats have been doing. */
- if (public_server_mode(options))
- rep_hist_log_circuit_handshake_stats(now);
}
/* 1h. Check whether we should write bridge statistics to disk.
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 131e531b19..2948bf8f00 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -3041,7 +3041,6 @@ void
rep_hist_log_circuit_handshake_stats(time_t now)
{
(void)now;
- /* XXX024 maybe quiet this log message before 0.2.4 goes stable for real */
log_notice(LD_HIST, "Circuit handshake stats since last time: "
"%d/%d TAP, %d/%d NTor.",
onion_handshakes_completed[ONION_HANDSHAKE_TYPE_TAP],
diff --git a/src/or/status.c b/src/or/status.c
index d239e6ee75..4c4215504b 100644
--- a/src/or/status.c
+++ b/src/or/status.c
@@ -121,6 +121,9 @@ log_heartbeat(time_t now)
log_notice(LD_HEARTBEAT, "TLS write overhead: %.f%%", overhead);
}
+ if (public_server_mode(options))
+ rep_hist_log_circuit_handshake_stats(now);
+
tor_free(uptime);
tor_free(bw_sent);
tor_free(bw_rcvd);