refactor(irtt-stats): remove unknown loss field

This commit is contained in:
Nils Andreas Svee committed 2026-05-13 16:25:11 +07:00
1 parent dd1b08c51c
commit aa6c3f4fa6
2 files changed
+3 -4

No files matched your search

+1 -4
View File
@@ -7,10 +7,8 @@ use crate::PacketCounts;
/// Directional upstream and downstream loss can be negative when
/// server-reported counts exceed local expectations.
pub struct LossStats {
/// Locally inferred lost packets.
/// Locally inferred total lost packets.
pub lost_packets: u64,
/// Loss not attributed to a direction.
pub unknown_loss_packets: u64,
/// Server-assisted upstream loss estimate, when server counts are available.
pub upstream_loss_packets: Option<i128>,
/// Server-assisted downstream loss estimate, when server counts are available.
@@ -67,7 +65,6 @@ pub(crate) fn loss_stats(packets: PacketCounts) -> LossStats {
LossStats {
lost_packets: lost,
unknown_loss_packets: lost,
upstream_loss_packets,
downstream_loss_packets,
packet_loss_percent,