Correct worst offenders ordering

This commit is contained in:
Joshua Barretto 2025-04-29 21:00:11 +01:00
parent 4007c07dc5
commit 6b05f7fd52

View file

@ -218,8 +218,9 @@ async fn main() {
worst_offenders.sort_by_key(|(_, n)| *n);
let stats = worst_offenders
.iter()
.rev()
.enumerate()
.map(|(i, (ip, n))| format!("#{:>4} | {:>4} | {}\n", i + 1, n, ip))
.map(|(i, (ip, n))| format!("{:<4} | {:<4} | {}\n", i + 1, n, ip))
.collect::<String>();
let _ = std::fs::write(STATS_FILE, &stats);
}