Correct worst offenders ordering
This commit is contained in:
parent
4007c07dc5
commit
6b05f7fd52
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue