X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=decalc.cpp;h=f6203827baec8e2575532ef43b0b2e3703745ca7;hb=17fff150047c9ddc5f7697ab946d79a2ed009bd2;hp=c600a7f56633c270ec83810a306ad71ca3cd65c8;hpb=eccface807733d7b770c95716d05067d276ead26;p=mothur.git diff --git a/decalc.cpp b/decalc.cpp index c600a7f..f620382 100644 --- a/decalc.cpp +++ b/decalc.cpp @@ -789,7 +789,7 @@ vector DeCalculator::findClosest(Sequence* querySeq, vectorcontrol_pressed) { return seqsMatches; } @@ -811,6 +811,8 @@ vector DeCalculator::findClosest(Sequence* querySeq, vectorgetName() << '\t' << distsRight[i].dist << endl; } + if (i == numWanted) { break; } + } //are we still above the minimum similarity cutoff