Fix a really silly mistake. I did NOT mean to always store the worst RTT we've ever seen.

This commit is contained in:
Herbert Wolverson committed 2024-03-11 15:26:23 -05:00
1 parent d93726e538
commit 79247e07f0
1 file changed
+1 -4
@@ -221,10 +221,7 @@ impl ThroughputTracker {
for i in 1..60 {
tracker.recent_rtt_data[i] = tracker.recent_rtt_data[i - 1];
}
tracker.recent_rtt_data[0] = u32::max(
(data.last_rtt[0] / 10000) as u32,
(data.last_rtt[1] / 10000) as u32,
);
tracker.recent_rtt_data[0] = (data.last_rtt[0] / 10000) as u32;
tracker.last_fresh_rtt_data_cycle = self_cycle;
if let Some(parents) = &tracker.network_json_parents {
let net_json = NETWORK_JSON.write().unwrap();