diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2017-12-06 23:56:03 +0000 |
---|---|---|
committer | Mike Perry <mikeperry-git@torproject.org> | 2017-12-07 00:04:39 +0000 |
commit | 125df07d609933a7974f362706b126a4bf339788 (patch) | |
tree | a2ecd34837d51e02a60bc68a3779862b2abd647f /src/or/circuitstats.h | |
parent | ed89588c4fa672eb8a85c8c5cdce4f7ec08bc9d8 (diff) | |
download | tor-125df07d609933a7974f362706b126a4bf339788.tar.gz tor-125df07d609933a7974f362706b126a4bf339788.zip |
Report close and timeout rates since uptime, not based on data.
Bug #23114 was harder to see because we were just reporting our math,
rather than reporting behavior.
Diffstat (limited to 'src/or/circuitstats.h')
-rw-r--r-- | src/or/circuitstats.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/or/circuitstats.h b/src/or/circuitstats.h index 7fc65fc8d1..86116cb7f8 100644 --- a/src/or/circuitstats.h +++ b/src/or/circuitstats.h @@ -96,6 +96,16 @@ struct circuit_build_times_s { double timeout_ms; /** How long we wait before actually closing the circuit. */ double close_ms; + /** Total succeeded counts. Old measurements may be scaled downward if + * we've seen a lot of circuits. */ + uint32_t num_circ_succeeded; + /** Total timeout counts. Old measurements may be scaled downward if + * we've seen a lot of circuits. */ + uint32_t num_circ_timeouts; + /** Total closed counts. Old measurements may be scaled downward if + * we've seen a lot of circuits.*/ + uint32_t num_circ_closed; + }; #endif /* defined(CIRCUITSTATS_PRIVATE) */ |