diff options
author | Mike Perry <mikeperry-git@fscked.org> | 2010-02-14 14:45:45 -0800 |
---|---|---|
committer | Mike Perry <mikeperry-git@fscked.org> | 2010-02-22 16:52:11 -0800 |
commit | 245be159afa206676b05b9b5d5a11aa1f6b25bd7 (patch) | |
tree | 13bb46fe9314bbf39ff7f4e66e0dc47f3a8b66c8 /src/or/rephist.c | |
parent | 5d4f5ef07d8e28018e1520d0cc413a75092a9304 (diff) | |
download | tor-245be159afa206676b05b9b5d5a11aa1f6b25bd7.tar.gz tor-245be159afa206676b05b9b5d5a11aa1f6b25bd7.zip |
Always weight routers by bandwidth.
Also always predict that we need a high capacity circuit or internal
circuit.
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r-- | src/or/rephist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index e606db3b7b..8729a12088 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -1909,8 +1909,8 @@ rep_hist_get_predicted_internal(time_t now, int *need_uptime, return 0; /* too long ago */ if (predicted_internal_uptime_time + PREDICTED_CIRCS_RELEVANCE_TIME >= now) *need_uptime = 1; - if (predicted_internal_capacity_time + PREDICTED_CIRCS_RELEVANCE_TIME >= now) - *need_capacity = 1; + // Always predict that we need capacity. + *need_capacity = 1; return 1; } |