aboutsummaryrefslogtreecommitdiff
path: root/src/or/nodelist.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2013-03-28 09:42:49 +0100
committerNick Mathewson <nickm@torproject.org>2013-03-28 09:32:19 -0400
commit1bce70a9e3b33d02b2bae4b94a1774db38d19d3a (patch)
tree8e6de78857922f0e4d00bcd33069b405bb318f9c /src/or/nodelist.c
parentcd5048d61e64371ea1f7756cefacd9e731f11002 (diff)
downloadtor-1bce70a9e3b33d02b2bae4b94a1774db38d19d3a.tar
tor-1bce70a9e3b33d02b2bae4b94a1774db38d19d3a.tar.gz
Make PathsNeededToBuildCircuits option work.
Diffstat (limited to 'src/or/nodelist.c')
-rw-r--r--src/or/nodelist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index 5f3b843d0..178f084b6 100644
--- a/src/or/nodelist.c
+++ b/src/or/nodelist.c
@@ -1418,7 +1418,7 @@ get_frac_paths_needed_for_circs(const or_options_t *options,
const networkstatus_t *ns)
{
#define DFLT_PCT_USABLE_NEEDED 60
- if (options->PathsNeededToBuildCircuits >= 1.0) {
+ if (options->PathsNeededToBuildCircuits >= 0.0) {
return options->PathsNeededToBuildCircuits;
} else {
return networkstatus_get_param(ns, "min_paths_for_circs_pct",