aboutsummaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-12-15 13:53:53 -0500
committerNick Mathewson <nickm@torproject.org>2009-12-15 13:58:24 -0500
commit60b01c6d5e7afbb4eee6f7e57583fae4a7278d58 (patch)
tree61a1e8752614ca68d23642420dd5d55fb136b006 /src/or/networkstatus.c
parent296381eda0efd1c849834b49547a8bb7fe773e71 (diff)
downloadtor-60b01c6d5e7afbb4eee6f7e57583fae4a7278d58.tar.gz
tor-60b01c6d5e7afbb4eee6f7e57583fae4a7278d58.zip
Change interface for configuring cell ewma algorithm.
The rule is now: take the value from the CircuitPriorityHalflife config option if it is set. If it zero, disable the cell_ewma algorithm. If it is set, use it to calculate the scaling factor. If it is not set, look for a CircPriorityHalflifeMsec parameter in the consensus networkstatus. If *that* is zero, then disable the cell_ewma algorithm; if it is set, use it to calculate the scaling factor. If it is not set at all, disable the algorithm.
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index f3925f1b89..bebe87353b 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -1679,6 +1679,7 @@ networkstatus_set_current_consensus(const char *consensus,
update_consensus_networkstatus_fetch_time(now);
dirvote_recalculate_timing(get_options(), now);
routerstatus_list_update_named_server_map();
+ cell_ewma_set_scale_factor(get_options(), current_consensus);
}
if (!from_cache) {