summaryrefslogtreecommitdiff
path: root/src/or/rephist.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-06-08 22:36:13 +0000
committerRoger Dingledine <arma@torproject.org>2006-06-08 22:36:13 +0000
commitbb18168fae7c0cb3132c667b90806492f56be00f (patch)
treeabb48ee8e901318f7c9926617813873f32f0ea73 /src/or/rephist.c
parent18eb8192db41617dfe89b0cc07936c59390017e1 (diff)
downloadtor-bb18168fae7c0cb3132c667b90806492f56be00f.tar.gz
tor-bb18168fae7c0cb3132c667b90806492f56be00f.zip
ok, ok, maybe *this* time my rep_hist_circbuilding_dormant() will work.
svn:r6568
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r--src/or/rephist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 491a058d43..2459d46b7d 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -916,11 +916,12 @@ rep_hist_get_predicted_internal(time_t now, int *need_uptime,
/** Return 1 if we have no need for circuits currently, else return 0. */
int
-rep_hist_circbuilding_dormant(void)
+rep_hist_circbuilding_dormant(time_t now)
{
/* Any ports used lately? These are pre-seeded if we just started
* up or if we're running a hidden service. */
- if (smartlist_len(predicted_ports_list) || predicted_internal_time)
+ if (smartlist_len(predicted_ports_list) ||
+ predicted_internal_time + PREDICTED_CIRCS_RELEVANCE_TIME >= now)
return 0;
/* see if we'll still need to build testing circuits */