diff --git a/src/display_layout/sizes.cpp b/src/display_layout/sizes.cpp index a90df1c8..5a0a734e 100644 --- a/src/display_layout/sizes.cpp +++ b/src/display_layout/sizes.cpp @@ -137,17 +137,17 @@ size_t hierarchical_stats(stats & stats_data, { auto & child = current_node.children[index]; - robin_hood::unordered_flat_set kmers{}; - hierarchical_stats(stats_data, kmers, child, data, current_hibf_level + 1u); + robin_hood::unordered_flat_set kmers2{}; + hierarchical_stats(stats_data, kmers2, child, data, current_hibf_level + 1u); if (current_hibf_level > 0 /* not top level */) { std::lock_guard guard{merge_kmer_mutex}; - update_parent_kmers(parent_kmers, kmers); + update_parent_kmers(parent_kmers, kmers2); } size_waste_per_tb[child.parent_bin_index] = - amount_of_max_bin_kmers - std::min(amount_of_max_bin_kmers, kmers.size()); + amount_of_max_bin_kmers - std::min(amount_of_max_bin_kmers, kmers2.size()); } } @@ -251,7 +251,7 @@ void execute_general_stats(config const & cfg) std::vector load_factor_per_level(number_of_levels); std::vector num_ibfs_per_level(number_of_levels); - for (size_t i = 0; i < stats_data.ibf_sizes.size(); ++i) + for (size_t i = 0; i < number_of_ibfs; ++i) { size_t const ibf_level{stats_data.ibf_levels[i]}; size_per_level[ibf_level] += stats_data.ibf_sizes[i];