aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-07-25 22:56:40 +0000
committerNick Mathewson <nickm@torproject.org>2007-07-25 22:56:40 +0000
commit1b7a704c34443315a1f89280425aa89509a528ee (patch)
tree4a0005021a1c3baf9968221589bc351421492880 /src/or/main.c
parent83fa8436636892758020c109258a79d862e2728b (diff)
downloadtor-1b7a704c34443315a1f89280425aa89509a528ee.tar
tor-1b7a704c34443315a1f89280425aa89509a528ee.tar.gz
r13901@catbus: nickm | 2007-07-25 16:23:51 -0400
Make all code to generate v1 directories into conditional code. svn:r10926
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index d0c466dba..6e449e0ef 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -954,7 +954,11 @@ run_scheduled_events(time_t now)
ROUTER_PURPOSE_GENERAL, NULL, 1);
}
/** How often do we (as a cache) fetch a new V1 runningrouters document? */
+#ifdef FULL_V1_DIRECTORIES
#define V1_RUNNINGROUTERS_FETCH_PERIOD (30*60)
+#else
+#define V1_RUNNINGROUTERS_FETCH_PERIOD (6*60*60)
+#endif
time_to_fetch_running_routers = now + V1_RUNNINGROUTERS_FETCH_PERIOD;
/* Also, take this chance to remove old information from rephist