Style tweak

This commit is contained in:
Benjamin Saunders
2021-11-02 19:49:30 -07:00
committed by Dirkjan Ochtman
parent d4d1664331
commit 366520020c
+4 -2
View File
@@ -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);