mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-16 14:34:45 -06:00
Last commit, but now with sensible logic.
This commit is contained in:
parent
98155a04c3
commit
bad4429729
@ -215,10 +215,10 @@ impl ThroughputTracker {
|
||||
this_flow.0.tos = data.tos;
|
||||
this_flow.0.flags = data.flags;
|
||||
if let Some([up, down]) = rtt_samples.get(&key) {
|
||||
if this_flow.0.rtt[0].as_nanos() != 0 {
|
||||
if up.as_nanos() != 0 {
|
||||
this_flow.0.rtt[0] = *up;
|
||||
}
|
||||
if this_flow.0.rtt[1].as_nanos() != 0 {
|
||||
if down.as_nanos() != 0 {
|
||||
this_flow.0.rtt[1] = *down;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user