Skip to content

Commit

Permalink
fix manual_div_ceil clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ghedo committed Jan 22, 2025
1 parent ffb3cde commit f146a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quiche/src/recovery/congestion/prr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ impl PRR {
self.snd_cnt = if pipe > ssthresh {
// Proportional Rate Reduction.
if self.recoverfs > 0 {
((self.prr_delivered * ssthresh + self.recoverfs - 1) /
self.recoverfs)
(self.prr_delivered * ssthresh)
.div_ceil(self.recoverfs)
.saturating_sub(self.prr_out)
} else {
0
Expand Down

0 comments on commit f146a2b

Please sign in to comment.