aboutsummaryrefslogtreecommitdiff
path: root/src/or/status.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-02-03 13:06:58 -0500
committerNick Mathewson <nickm@torproject.org>2015-02-03 13:06:58 -0500
commitcdc49629c7d26e9806b8aa3c5a7dc80fbec9d060 (patch)
tree4a03c7d9830abee489d0f08d0d2ce618699e41da /src/or/status.c
parentd03e1da232ada2e0d3a3de3dbf6885caec74e4e0 (diff)
parent7f52dc4d03cc8b738b0c2a3896128ab38b030c52 (diff)
downloadtor-cdc49629c7d26e9806b8aa3c5a7dc80fbec9d060.tar.gz
tor-cdc49629c7d26e9806b8aa3c5a7dc80fbec9d060.zip
Merge branch 'bug6852'
Conflicts: src/or/status.c
Diffstat (limited to 'src/or/status.c')
-rw-r--r--src/or/status.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/or/status.c b/src/or/status.c
index 0717070a05..98db688e5b 100644
--- a/src/or/status.c
+++ b/src/or/status.c
@@ -23,6 +23,7 @@
#include "statefile.h"
static void log_accounting(const time_t now, const or_options_t *options);
+#include "geoip.h"
/** Return the total number of circuits. */
STATIC int
@@ -92,7 +93,6 @@ log_heartbeat(time_t now)
const int hibernating = we_are_hibernating();
const or_options_t *options = get_options();
- (void)now;
if (public_server_mode(options) && !hibernating) {
/* Let's check if we are in the current cached consensus. */
@@ -132,6 +132,14 @@ log_heartbeat(time_t now)
circuit_log_ancient_one_hop_circuits(1800);
+ if (options->BridgeRelay) {
+ char *msg = NULL;
+ msg = format_client_stats_heartbeat(now);
+ if (msg)
+ log_notice(LD_HEARTBEAT, "%s", msg);
+ tor_free(msg);
+ }
+
tor_free(uptime);
tor_free(bw_sent);
tor_free(bw_rcvd);