Mostly worked - now show the correct country!

This commit is contained in:
Herbert Wolverson 2024-07-19 15:56:02 -05:00
parent 46388916c3
commit d6ecea8d37

View File

@ -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