Skip to content

Commit ebc98fa

Browse files
committed
Correct pacing_rate metric units
draft-ietf-quic-qlog-quic-events-11 specifies bits per second.
1 parent 5ddd3e5 commit ebc98fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

quinn-proto/src/congestion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub struct ControllerMetrics {
9292
pub congestion_window: u64,
9393
/// Slow start threshold (bytes)
9494
pub ssthresh: Option<u64>,
95-
/// Pacing rate (bytes/s)
95+
/// Pacing rate (bits/s)
9696
pub pacing_rate: Option<u64>,
9797
}
9898

quinn-proto/src/congestion/bbr/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ impl Controller for Bbr {
490490
ControllerMetrics {
491491
congestion_window: self.window(),
492492
ssthresh: None,
493-
pacing_rate: Some(self.pacing_rate),
493+
pacing_rate: Some(self.pacing_rate * 8),
494494
}
495495
}
496496

0 commit comments

Comments
 (0)