Skip to content

Commit

Permalink
chore: two decimal precision on classified percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhall88 committed Sep 23, 2024
1 parent 9a6bffb commit 20d02d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ impl CommandRunner {
parse_kraken_stderr(&stderr_log).unwrap_or((0, 0, 0));

info!(
"{} / {} ({}%) sequences classified as human; keeping {} non-human sequences...",
"{} / {} ({:.2}%) sequences classified as human; {} ({:.2}%) as non-human",
classified,
total,
(classified as f64 / total as f64 * 100.0),
unclassified
(classified as f64 / total as f64) * 100.0,
unclassified,
(unclassified as f64 / total as f64) * 100.0
);

Ok(())
Expand Down

0 comments on commit 20d02d1

Please sign in to comment.