better thr

This commit is contained in:
Q
2024-04-14 11:55:53 +03:00
parent 31ab87b9df
commit fecdcaf90e

View File

@@ -669,7 +669,7 @@ def find_fingerprint_nearest(opts):
''' Find nearest match to given file '''
cmp=os.path.realpath(opts.similarity.rsplit(",")[0])
thr=sys.maxint
thr=65535
if len(opts.similarity.rsplit(","))>1:
thr=int(opts.similarity.rsplit(",",1)[1])
conn=sqlite3.connect(opts.sqlfile)