diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2010-08-15 14:58:35 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2010-12-03 16:47:52 +0100 |
commit | f56529b4b2226f2fde1ff75ee222edccca9d1591 (patch) | |
tree | 70904ebf65aeaa836edff8664f34594d8531ec32 /src/or/config.c | |
parent | 5dfdf075ac0cb3df66443011d3faa2c95dc53629 (diff) | |
download | tor-f56529b4b2226f2fde1ff75ee222edccca9d1591.tar.gz tor-f56529b4b2226f2fde1ff75ee222edccca9d1591.zip |
Call the new config option ConnDirectionStatistics.
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/config.c b/src/or/config.c index 5ab4b46d5f..cd6b0b0c3c 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -200,7 +200,7 @@ static config_var_t _option_vars[] = { V(ClientOnly, BOOL, "0"), V(ConsensusParams, STRING, NULL), V(ConnLimit, UINT, "1000"), - V(ConnStatistics, BOOL, "0"), + V(ConnDirectionStatistics, BOOL, "0"), V(ConstrainedSockets, BOOL, "0"), V(ConstrainedSockSize, MEMUNIT, "8192"), V(ContactInfo, STRING, NULL), @@ -1393,7 +1393,7 @@ options_act(or_options_t *old_options) if (options->CellStatistics || options->DirReqStatistics || options->EntryStatistics || options->ExitPortStatistics || - options->ConnStatistics) { + options->ConnDirectionStatistics) { time_t now = time(NULL); if ((!old_options || !old_options->CellStatistics) && options->CellStatistics) @@ -1407,8 +1407,8 @@ options_act(or_options_t *old_options) if ((!old_options || !old_options->ExitPortStatistics) && options->ExitPortStatistics) rep_hist_exit_stats_init(now); - if ((!old_options || !old_options->ConnStatistics) && - options->ConnStatistics) + if ((!old_options || !old_options->ConnDirectionStatistics) && + options->ConnDirectionStatistics) rep_hist_conn_stats_init(now); if (!old_options) log_notice(LD_CONFIG, "Configured to measure statistics. Look for " @@ -1428,8 +1428,8 @@ options_act(or_options_t *old_options) if (old_options && old_options->ExitPortStatistics && !options->ExitPortStatistics) rep_hist_exit_stats_term(); - if (old_options && old_options->ConnStatistics && - !options->ConnStatistics) + if (old_options && old_options->ConnDirectionStatistics && + !options->ConnDirectionStatistics) rep_hist_conn_stats_term(); /* Check if we need to parse and add the EntryNodes config option. */ |