tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit b279ede5b04605bb1123b5ccd0b0c3b2424f3cdc
parent 03975cdacf700fcb78298d5f508e7947b838a897
Author: Oskar Mansfeld <git@omansfeld.net>
Date:   Wed,  7 Jan 2026 12:11:27 +0000

Bug 2007840 - fix networking.http_3_ecn_ce_ect0_ratio_sent metric collection. r=mxinden,necko-reviewers,kershaw

Differential Revision: https://phabricator.services.mozilla.com/D277571

Diffstat:
Mnetwerk/socket/neqo_glue/src/lib.rs | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/netwerk/socket/neqo_glue/src/lib.rs b/netwerk/socket/neqo_glue/src/lib.rs @@ -629,8 +629,8 @@ impl NeqoHttp3Conn { && static_prefs::pref!("network.http.http3.ecn_mark") && stats.frame_rx.handshake_done != 0 { - let tx_ect0_sum: u64 = stats.ecn_tx.into_values().map(|v| v[Ecn::Ect0]).sum(); - let tx_ce_sum: u64 = stats.ecn_tx.into_values().map(|v| v[Ecn::Ce]).sum(); + let tx_ect0_sum: u64 = stats.ecn_tx_acked.into_values().map(|v| v[Ecn::Ect0]).sum(); + let tx_ce_sum: u64 = stats.ecn_tx_acked.into_values().map(|v| v[Ecn::Ce]).sum(); if tx_ect0_sum > 0 { if let Ok(ratio) = i64::try_from((tx_ce_sum * PRECISION_FACTOR) / tx_ect0_sum) { glean::http_3_ecn_ce_ect0_ratio_sent.accumulate_single_sample_signed(ratio);