Skip to content

Commit

Permalink
Updted to see only big differences
Browse files Browse the repository at this point in the history
  • Loading branch information
romanchyla committed Nov 29, 2016
1 parent ad8f6cb commit 3ec3867
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ def compare(solr1, solr2, input_file):
queries[k] = r

if r[0] != r[1]:
print 'diff', r[0], r[1], k
if r[0] is not None and r[1] is not None:
if r[0] - r[1] > 10 or r[0] - r[1] < -10:
print 'diff', r[0], r[1], k
else:
print 'diff', r[0], r[1], k
different += 1
else:
the_same += 1
Expand Down

0 comments on commit 3ec3867

Please sign in to comment.