Change interface for configuring cell ewma algorithm.
commit60b01c6d5e7afbb4eee6f7e57583fae4a7278d58
authorNick Mathewson <nickm@torproject.org>
Tue, 15 Dec 2009 18:53:53 +0000 (15 13:53 -0500)
committerNick Mathewson <nickm@torproject.org>
Tue, 15 Dec 2009 18:58:24 +0000 (15 13:58 -0500)
tree61a1e8752614ca68d23642420dd5d55fb136b006
parent296381eda0efd1c849834b49547a8bb7fe773e71
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.
src/or/config.c
src/or/networkstatus.c
src/or/or.h
src/or/relay.c