aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-09-30 19:22:24 +0000
committerRoger Dingledine <arma@torproject.org>2006-09-30 19:22:24 +0000
commit075cb54d9ba9cc2eb3d780957672831351480549 (patch)
tree83c89af4ac55dfb8eb50b60edbb8175e54b1e5ab
parent723ff1c93df01e7dab8442991bd554c3837296f4 (diff)
downloadtor-075cb54d9ba9cc2eb3d780957672831351480549.tar
tor-075cb54d9ba9cc2eb3d780957672831351480549.tar.gz
make hidden service predicted circuits correct rather than
exactly incorrect. i wonder how much this will help. svn:r8550
-rw-r--r--src/or/rephist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 2dceb143b..aedb0072d 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -902,9 +902,9 @@ rep_hist_get_predicted_internal(time_t now, int *need_uptime,
}
if (predicted_internal_time + PREDICTED_CIRCS_RELEVANCE_TIME < now)
return 0; /* too long ago */
- if (predicted_internal_uptime_time + PREDICTED_CIRCS_RELEVANCE_TIME < now)
+ if (predicted_internal_uptime_time + PREDICTED_CIRCS_RELEVANCE_TIME >= now)
*need_uptime = 1;
- if (predicted_internal_capacity_time + PREDICTED_CIRCS_RELEVANCE_TIME < now)
+ if (predicted_internal_capacity_time + PREDICTED_CIRCS_RELEVANCE_TIME >= now)
*need_capacity = 1;
return 1;
}