diff options
author | Mike Perry <mikeperry-git@fscked.org> | 2010-06-03 02:36:43 -0700 |
---|---|---|
committer | Mike Perry <mikeperry-git@fscked.org> | 2010-06-09 00:22:17 -0700 |
commit | 848d9f8b43e607bca448cad9c6dcf985d0692533 (patch) | |
tree | 059b9d4aafbfbe13f99d18394baef19e734e0d85 /src/or/or.h | |
parent | dc880924b7d861b551471ac543bd367ddab81070 (diff) | |
download | tor-848d9f8b43e607bca448cad9c6dcf985d0692533.tar.gz tor-848d9f8b43e607bca448cad9c6dcf985d0692533.zip |
Remove synthetic timeout code in favor of better Pareto model.
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/or/or.h b/src/or/or.h index 2d40b8233a..d1b3661789 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -3018,11 +3018,6 @@ void entry_guards_free_all(void); * 1000 is approx 2.5 days worth of continual-use circuits. */ #define CBT_NCIRCUITS_TO_OBSERVE 1000 -/** Maximum quantile to use to generate synthetic timeouts. - * We want to stay a bit short of 100, because longtail is - * loooooooooooooooooooooooooooooooooooooooooooooooooooong. */ -#define CBT_DEFAULT_MAX_SYNTHETIC_QUANTILE 90 - /** Width of the histogram bins in milliseconds */ #define CBT_BIN_WIDTH ((build_time_t)50) @@ -3031,6 +3026,7 @@ void entry_guards_free_all(void); /** A build_time_t is milliseconds */ typedef uint32_t build_time_t; +#define CBT_BUILD_TIMEOUT ((build_time_t)(INT32_MAX-1)) #define CBT_BUILD_TIME_MAX ((build_time_t)(INT32_MAX)) /** Save state every 10 circuits */ @@ -3128,9 +3124,6 @@ typedef struct { network_liveness_t liveness; /** Last time we built a circuit. Used to decide to build new test circs */ time_t last_circ_at; - /** Number of timeouts that have happened before estimating pareto - * parameters */ - int pre_timeouts; /** "Minimum" value of our pareto distribution (actually mode) */ build_time_t Xm; /** alpha exponent for pareto dist. */ |