mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-24 12:13:05 +00:00
Style tweak
This commit is contained in:
committed by
Dirkjan Ochtman
parent
d4d1664331
commit
366520020c
@@ -186,8 +186,10 @@ impl Controller for Cubic {
|
||||
self.cubic_state.w_max = self.window as f64;
|
||||
}
|
||||
|
||||
self.ssthresh = (self.cubic_state.w_max * BETA_CUBIC) as u64;
|
||||
self.ssthresh = cmp::max(self.ssthresh, self.config.minimum_window);
|
||||
self.ssthresh = cmp::max(
|
||||
(self.cubic_state.w_max * BETA_CUBIC) as u64,
|
||||
self.config.minimum_window,
|
||||
);
|
||||
self.window = self.ssthresh;
|
||||
self.cubic_state.k = self.cubic_state.cubic_k(self.config.max_datagram_size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user