diff --git a/src/mash/CommandDistance.cpp b/src/mash/CommandDistance.cpp index ce8e52a..443cec1 100644 --- a/src/mash/CommandDistance.cpp +++ b/src/mash/CommandDistance.cpp @@ -385,7 +385,7 @@ void compareSketches(CommandDistance::CompareOutput::PairOutput * output, const distance = -log(2 * jaccard / (1. + jaccard)) / kmerSize; } - if ( distance > maxDistance ) + if ( distance > maxDistance && maxDistance < 1. ) { return; }