aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2009-10-07 13:05:28 -0700
committerMike Perry <mikeperry-git@fscked.org>2009-10-07 13:05:28 -0700
commit18689317e43dd5d33193d850220232addd7c0d16 (patch)
treec483b5d4940bddb6988e907e40336afd803d3602 /src/or/circuitbuild.c
parentec05e64a68bf788a9cf7e448cef8bdf065fe505e (diff)
downloadtor-18689317e43dd5d33193d850220232addd7c0d16.tar
tor-18689317e43dd5d33193d850220232addd7c0d16.tar.gz
Tweak an assert that shouldn't fire either way.
There were however other places where we used to call this function that might have caused this to fire. Better safe than sorry now.
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 0ff7f272f..54edccc9a 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -650,7 +650,7 @@ circuit_build_times_initial_alpha(circuit_build_times_t *cbt,
// CircBuildTimeout = Xm*((1-0.8))^(-1/a))
// ln(CircBuildTimeout) = ln(Xm)+ln(((1-0.8)))*(-1/a)
// -ln(1-0.8)/(ln(CircBuildTimeout)-ln(Xm))=a
- tor_assert(quantile > 0);
+ tor_assert(quantile >= 0);
tor_assert(cbt->Xm > 0);
cbt->alpha = ln(1.0-quantile)/(ln(cbt->Xm)-ln(timeout_ms));
tor_assert(cbt->alpha > 0);