diff options
author | George Kadianakis <desnacked@riseup.net> | 2013-02-26 12:43:53 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2013-02-26 12:43:53 +0200 |
commit | 05f8fd2878e1b85822c126c0206f8b8929556868 (patch) | |
tree | f654b803437a0e7b8e8bf5bfc04d2625f379000a /src/or/status.c | |
parent | 337e32f5b8f5f3b310da20bf0135f17d06efb3ab (diff) | |
download | tor-05f8fd2878e1b85822c126c0206f8b8929556868.tar.gz tor-05f8fd2878e1b85822c126c0206f8b8929556868.zip |
Add unique client counter to the heartbeat message.
Diffstat (limited to 'src/or/status.c')
-rw-r--r-- | src/or/status.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/or/status.c b/src/or/status.c index 126167dcb9..02d96aa78e 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 "geoip.h" /** Return the total number of circuits. */ static int @@ -87,7 +88,6 @@ log_heartbeat(time_t now) const routerinfo_t *me; const or_options_t *options = get_options(); - (void)now; if (public_server_mode(options)) { /* Let's check if we are in the current cached consensus. */ @@ -112,6 +112,14 @@ log_heartbeat(time_t now) 100*(U64_TO_DBL(stats_n_data_bytes_packaged) / U64_TO_DBL(stats_n_data_cells_packaged*RELAY_PAYLOAD_SIZE)) ); + 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); |