Skip to content

Commit

Permalink
round reporting percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegenes committed Sep 6, 2023
1 parent 94adfb1 commit ffdb908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1795,7 +1795,7 @@ fn manysketch<P: AsRef<Path> + Sync>(
let i = processed_fastas.fetch_add(1, atomic::Ordering::SeqCst);
// progress report at threshold
if i != 0 && i % reporting_threshold == 0 {
let percent_processed = (i as f64 / n_fastas as f64) * 100.0;
let percent_processed = ((i as f64 / n_fastas as f64) * 100.0).round();
eprintln!("Processed {} fasta files ({}% done)", i, percent_processed);
}

Expand Down

0 comments on commit ffdb908

Please sign in to comment.