summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2020-11-04 12:30:50 -0600
committerMike Perry <mikeperry-git@torproject.org>2021-02-18 11:21:25 -0600
commit406400a74d917ec997d26afdf4ae97d9826820fe (patch)
tree906297bfb9c18d3d33ee776e636558ac62cc3fa7 /src/core
parent86acd4d940572db16c3a4ccfa6059f1b76a3f5f6 (diff)
downloadtor-406400a74d917ec997d26afdf4ae97d9826820fe.tar.gz
tor-406400a74d917ec997d26afdf4ae97d9826820fe.zip
Lower circuit build time bin width to 10ms.
50ms is not enough resolution. CBT can be as low as 80ms in datacenter clients close to their relays.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/or/circuitstats.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/or/circuitstats.h b/src/core/or/circuitstats.h
index e7262e9e82..15fe23641e 100644
--- a/src/core/or/circuitstats.h
+++ b/src/core/or/circuitstats.h
@@ -55,7 +55,7 @@ void circuit_build_times_mark_circ_as_measurement_only(origin_circuit_t *circ);
#define CBT_NCIRCUITS_TO_OBSERVE 1000
/** Width of the histogram bins in milliseconds */
-#define CBT_BIN_WIDTH ((build_time_t)50)
+#define CBT_BIN_WIDTH ((build_time_t)10)
/** Number of modes to use in the weighted-avg computation of Xm */
#define CBT_DEFAULT_NUM_XM_MODES 3