diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-03-12 00:19:52 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-03-12 00:19:52 -0500 |
commit | 176fde505fde38afa56ddce04606118b9080546e (patch) | |
tree | 1579c6a4a6714f41cfcba0911808b7da2c53f666 /src/or/dirserv.h | |
parent | 977e396e866052a20de73f4e8121e514d4eff774 (diff) | |
download | tor-176fde505fde38afa56ddce04606118b9080546e.tar tor-176fde505fde38afa56ddce04606118b9080546e.tar.gz |
Tweak bug2716 patch a little
Name the magic value "10" rather than re-deriving it.
Comment more.
Use the pattern that works for periodic timers, not the pattern that
doesn't work. ;)
Diffstat (limited to 'src/or/dirserv.h')
-rw-r--r-- | src/or/dirserv.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/dirserv.h b/src/or/dirserv.h index 949482ba7..569abfca2 100644 --- a/src/or/dirserv.h +++ b/src/or/dirserv.h @@ -17,8 +17,12 @@ * test? */ #define REACHABILITY_MODULO_PER_TEST 128 +/** How often (in seconds) do we launch reachability tests? */ +#define REACHABILITY_TEST_INTERVAL 10 + /** How many seconds apart are the reachability tests for a given relay? */ -#define REACHABILITY_TEST_PERIOD (10*REACHABILITY_MODULO_PER_TEST) +#define REACHABILITY_TEST_CYCLE_PERIOD \ + (REACHABILITY_TEST_INTERVAL*REACHABILITY_MODULO_PER_TEST) /** Maximum length of an exit policy summary. */ #define MAX_EXITPOLICY_SUMMARY_LEN 1000 |