Skip to content

Commit

Permalink
Clarify some code
Browse files Browse the repository at this point in the history
  • Loading branch information
fwojcik committed Jun 1, 2024
1 parent fea51a2 commit 001647d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions util/Reporting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,10 @@ void ShowOutliers( const std::vector<hashtype> & hashes, const std::vector<hidx_
// Find the top 10 bin counts, including duplicates, and the number of
// empty bins.
constexpr unsigned nOutliers = 10;
uint32_t zerocount = (counts[0] == 0) ? 1 : 0;
std::vector<uint32_t> maxcounts(nOutliers);
uint32_t zerocount;
for (unsigned i = 0; i < nOutliers; i++) {
maxcounts[i] = counts[0];
zerocount = (counts[0] == 0) ? 1 : 0;
}
for (size_t i = 1; i < nbC; i++) {
if (counts[i] == 0) {
Expand Down

0 comments on commit 001647d

Please sign in to comment.