diff options
author | Mike Perry <mikeperry-git@fscked.org> | 2009-09-16 17:14:01 -0700 |
---|---|---|
committer | Mike Perry <mikeperry-git@fscked.org> | 2009-09-16 17:20:34 -0700 |
commit | e2c2fa7a1f763b1815adc13bdea46d4dbdba78c1 (patch) | |
tree | 0897a588bb7f0c2ed82df2ab4c9d256e89498072 /src/or/or.h | |
parent | e4e0ce94f0cd6ad18b9158e99936faeee5b6e092 (diff) | |
download | tor-e2c2fa7a1f763b1815adc13bdea46d4dbdba78c1.tar tor-e2c2fa7a1f763b1815adc13bdea46d4dbdba78c1.tar.gz |
Change liveness value to be a function of the timeout.
And also the number of recent circuits used to decide
when the network changes.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h index fb4ab8452..98fa84106 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2885,8 +2885,8 @@ void entry_guards_free_all(void); typedef uint32_t build_time_t; #define BUILD_TIME_MAX ((build_time_t)(INT32_MAX)) -/** Have we received a cell in the last 90 seconds? */ -#define NETWORK_LIVE_INTERVAL 90 +/** Have we received a cell in the last N seconds? */ +#define NETWORK_LIVE_MULTIPLIER (RECENT_CIRCUITS/2.5) /** Lowest allowable value for CircuitBuildTimeout */ #define BUILD_TIMEOUT_MIN_VALUE 3 |