summaryrefslogtreecommitdiff
path: root/src/or/rephist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r--src/or/rephist.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index f208bf95f6..e561675b98 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -748,8 +748,11 @@ rep_hist_note_used_hidserv(time_t now, int need_uptime, int need_capacity)
int
rep_hist_get_predicted_hidserv(time_t now, int *need_uptime, int *need_capacity)
{
- if (!predicted_hidserv_time) /* initialize it */
+ if (!predicted_hidserv_time) { /* initialize it */
predicted_hidserv_time = now;
+ predicted_hidserv_uptime_time = now;
+ predicted_hidserv_capacity_time = now;
+ }
if (predicted_hidserv_time + PREDICTED_CIRCS_RELEVANCE_TIME < now)
return 0; /* too long ago */
if (predicted_hidserv_uptime_time + PREDICTED_CIRCS_RELEVANCE_TIME < now)