Skip to content

Commit

Permalink
Tweak retransmission log info (#4387)
Browse files Browse the repository at this point in the history
  • Loading branch information
octol authored Feb 9, 2024
1 parent 5fdae14 commit 9b53473
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion common/client-core/src/client/packet_statistics_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ impl PacketRates {
}
}

#[derive(Debug)]
pub(crate) enum PacketStatisticsEvent {
// The real packets sent. Recall that acks are sent by the gateway, so it's not included here.
RealPacketSent(usize),
Expand Down Expand Up @@ -443,7 +444,11 @@ impl PacketStatisticsControl {
// Check what the number of retransmissions was during the recording window
if let Some((_, start_stats)) = self.history.front() {
let delta = self.stats.clone() - start_stats.clone();
log::info!("retransmissions: {}", delta.retransmissions_queued,);
log::info!(
"mix packet retransmissions/real mix packets: {}/{}",
delta.retransmissions_queued,
delta.real_packets_queued,
);
} else {
log::warn!("Unable to check retransmissions during recording window");
}
Expand Down

0 comments on commit 9b53473

Please sign in to comment.