Skip to content

Commit

Permalink
division by 0 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Aug 28, 2024
1 parent 428c63b commit 3db59a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sa-index/src/sa_searcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl Searcher {
// Create the Searcher object
let mut searcher = Self { sa, kmer_cache, proteins, suffix_index_to_protein };

let print_step_size = searcher.kmer_cache.base.pow(k as u32) / 100;
let print_step_size = min(searcher.kmer_cache.base.pow(k as u32) / 100, searcher.kmer_cache.base);

eprintln!("Starting cache fill");
let start_cache_fill_time = get_time_ms().unwrap();
Expand Down

0 comments on commit 3db59a0

Please sign in to comment.