dm secu
This commit is contained in:
parent
aaba72658c
commit
2dd5eedd00
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,8 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
protocols.sort_by_key(|(_, count)| *count);
|
||||
println!("Main Protocols:");
|
||||
for (num, count) in protocols.into_iter().take(5) {
|
||||
println!("- {num:?} {count: >14}");
|
||||
let contrib = (count as f64 / total as f64) * 100.;
|
||||
println!("- {num:?} {count: >14} ({contrib:>6.2}%)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue