diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-03-05 14:35:07 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-03-05 14:35:07 -0500 |
commit | 22ccfc6b5f25f75795e5f9d554b18e717962de3e (patch) | |
tree | 044c2f7b84d34b32710d557338928ad5e45b6a65 /src/or/rephist.c | |
parent | 103cebd9243367106909251e73ee97aafe9d201c (diff) | |
download | tor-22ccfc6b5f25f75795e5f9d554b18e717962de3e.tar.gz tor-22ccfc6b5f25f75795e5f9d554b18e717962de3e.zip |
Rename PredictedCircsRelevanceTime->PredictedPortsRelevanceTime
All circuits are predictive; it's the ports that are expiring here.
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r-- | src/or/rephist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index a65f7251f8..16e16ab651 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -1871,7 +1871,7 @@ rep_hist_get_predicted_ports(time_t now) int predicted_circs_relevance_time; smartlist_t *out = smartlist_new(); tor_assert(predicted_ports_list); - predicted_circs_relevance_time = get_options()->PredictedCircsRelevanceTime; + predicted_circs_relevance_time = get_options()->PredictedPortsRelevanceTime; /* clean out obsolete entries */ SMARTLIST_FOREACH_BEGIN(predicted_ports_list, predicted_port_t *, pp) { @@ -1943,7 +1943,7 @@ rep_hist_get_predicted_internal(time_t now, int *need_uptime, int *need_capacity) { int predicted_circs_relevance_time; - predicted_circs_relevance_time = get_options()->PredictedCircsRelevanceTime; + predicted_circs_relevance_time = get_options()->PredictedPortsRelevanceTime; if (!predicted_internal_time) { /* initialize it */ predicted_internal_time = now; @@ -1965,7 +1965,7 @@ int any_predicted_circuits(time_t now) { int predicted_circs_relevance_time; - predicted_circs_relevance_time = get_options()->PredictedCircsRelevanceTime; + predicted_circs_relevance_time = get_options()->PredictedPortsRelevanceTime; return smartlist_len(predicted_ports_list) || predicted_internal_time + predicted_circs_relevance_time >= now; |