summaryrefslogtreecommitdiff
path: root/src/or/status.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-12-24 11:41:48 -0500
committerNick Mathewson <nickm@torproject.org>2013-12-24 11:41:48 -0500
commit2b8962bc64852d601efa2a8a624bffbbf5ba7ef5 (patch)
tree56c542a54b22fc41b43eae7f588de850bb37eb35 /src/or/status.c
parent35115496511f64c08849a039c926910739467169 (diff)
downloadtor-2b8962bc64852d601efa2a8a624bffbbf5ba7ef5.tar.gz
tor-2b8962bc64852d601efa2a8a624bffbbf5ba7ef5.zip
Move onion-type stats message into heartbeat
Fix for 10485. Fix on 0.2.4.17-alpha.
Diffstat (limited to 'src/or/status.c')
-rw-r--r--src/or/status.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/status.c b/src/or/status.c
index d239e6ee75..134d8ee88f 100644
--- a/src/or/status.c
+++ b/src/or/status.c
@@ -14,6 +14,7 @@
#include "router.h"
#include "circuitlist.h"
#include "main.h"
+#include "rephist.h"
#include "hibernate.h"
/** Return the total number of circuits. */
@@ -121,6 +122,11 @@ log_heartbeat(time_t now)
log_notice(LD_HEARTBEAT, "TLS write overhead: %.f%%", overhead);
}
+ /* 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);
+
tor_free(uptime);
tor_free(bw_sent);
tor_free(bw_rcvd);