Skip to content

Commit

Permalink
[MISC] automatic linting
Browse files Browse the repository at this point in the history
  • Loading branch information
seqan-actions committed Oct 26, 2023
1 parent 5d74c64 commit ea28d8b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/layout/hibf_statistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,10 @@ size_t hibf_statistics::total_hibf_size_in_byte()
total_size += std::reduce(summary.ibf_mem_size.begin(), summary.ibf_mem_size.end());
}

size_t const size_in_bits = seqan::hibf::build::bin_size_in_bits(
{.fpr = config.hibf_config.maximum_fpr,
.hash_count = config.hibf_config.number_of_hash_functions,
.elements = total_size});
size_t const size_in_bits =
seqan::hibf::build::bin_size_in_bits({.fpr = config.hibf_config.maximum_fpr,
.hash_count = config.hibf_config.number_of_hash_functions,
.elements = total_size});

return size_in_bits / 8;
}
Expand Down Expand Up @@ -348,10 +348,10 @@ size_t hibf_statistics::total_hibf_size_in_byte()

std::string hibf_statistics::to_formatted_BF_size(size_t const number_of_kmers_to_be_stored) const
{
size_t const size_in_bits = seqan::hibf::build::bin_size_in_bits(
{.fpr = config.hibf_config.maximum_fpr,
.hash_count = config.hibf_config.number_of_hash_functions,
.elements = number_of_kmers_to_be_stored});
size_t const size_in_bits =
seqan::hibf::build::bin_size_in_bits({.fpr = config.hibf_config.maximum_fpr,
.hash_count = config.hibf_config.number_of_hash_functions,
.elements = number_of_kmers_to_be_stored});
return byte_size_to_formatted_str(size_in_bits / 8);
}

Expand Down

0 comments on commit ea28d8b

Please sign in to comment.