diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2013-12-18 18:00:17 +0100 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2013-12-18 18:01:25 +0100 |
commit | 90f0358e3e6d70f20436ebe17065b02476dd133c (patch) | |
tree | 71aff928f195bdd711d7c77c1faca20d949eb4a6 /src/or/config.c | |
parent | f12d3fe9aa3d2f97eb1750e30b812358ecdd9139 (diff) | |
download | tor-90f0358e3e6d70f20436ebe17065b02476dd133c.tar.gz tor-90f0358e3e6d70f20436ebe17065b02476dd133c.zip |
Disable (Cell,Entry,ExitPort)Statistics on bridges
In 0.2.3.8-alpha we attempted to "completely disable stats if we aren't
running as a relay", but instead disabled them only if we aren't running
as a server.
This commit leaves DirReqStatistics enabled on both relays and bridges,
and disables (Cell,Entry,ExitPort)Statistics on bridges.
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c index d348f1036b..379685802c 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -1684,10 +1684,14 @@ options_act(const or_options_t *old_options) time_t now = time(NULL); int print_notice = 0; - /* If we aren't acting as a server, we can't collect stats anyway. */ + /* Only collect directory-request statistics on relays and bridges. */ if (!server_mode(options)) { - options->CellStatistics = 0; options->DirReqStatistics = 0; + } + + /* Only collect other relay-only statistics on relays. */ + if (!public_server_mode(options)) { + options->CellStatistics = 0; options->EntryStatistics = 0; options->ExitPortStatistics = 0; } |