diff options
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; |