mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2024-11-21 15:57:24 -06:00
Mostly worked - now show the correct country!
This commit is contained in:
parent
46388916c3
commit
d6ecea8d37
@ -90,7 +90,6 @@ impl TimeBuffer {
|
||||
let mut total_bytes = DownUpOrder::zeroed();
|
||||
for (country, bytes, rtt) in my_buffer.iter() {
|
||||
if last_country != *country {
|
||||
last_country = country.clone();
|
||||
|
||||
// Store progress (but not the first one)
|
||||
if !last_country.is_empty() {
|
||||
@ -121,6 +120,9 @@ impl TimeBuffer {
|
||||
|
||||
// Accumulate traffic
|
||||
total_bytes.checked_add(*bytes);
|
||||
|
||||
// Next, please
|
||||
last_country = country.clone();
|
||||
}
|
||||
|
||||
// Sort by bytes downloaded descending
|
||||
|
Loading…
Reference in New Issue
Block a user