Skip to content

Commit

Permalink
Complete changeset for issue #82
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rr0 committed Aug 28, 2019
1 parent b775498 commit af0227f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hit.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class HitSink {
numMaxed += ptNumMaxed_[i];
}

uint64_t tot = numAligned + numUnaligned + numMaxed;
uint64_t tot = numAligned + numUnaligned;
double alPct = 0.0, unalPct = 0.0, maxPct = 0.0;
if(tot > 0) {
alPct = 100.0 * (double)numAligned / (double)tot;
Expand Down
4 changes: 1 addition & 3 deletions sam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,8 @@ void SAMHitSink::reportMaxed(
size_t threadId,
PatternSourcePerThread& p)
{
HitSink::reportMaxed(hs, threadId, p);
if(sampleMax_) {
HitSink::reportMaxed(hs, threadId, p);
RandomSource rand;
rand.init(p.bufa().seed);
assert_gt(hs.size(), 0);
Expand Down Expand Up @@ -351,7 +351,5 @@ void SAMHitSink::reportMaxed(
uint32_t r = rand.nextU32() % num;
reportHits(&hs[r], NULL, 0, 1, threadId, 0, (int)hs.size()+1, true, p.rdid());
}
} else {
reportUnOrMax(p, &hs, threadId, false);
}
}

0 comments on commit af0227f

Please sign in to comment.