Skip to content

Commit

Permalink
Merge pull request #376 from jaredbischof/master
Browse files Browse the repository at this point in the history
Excluding seek, length fields when they exceed int range
  • Loading branch information
teharrison committed Dec 17, 2014
2 parents 997f625 + a8f9772 commit 43c27ac
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -179,7 +179,11 @@ def print_md5_stats(ohdl, data, imap):
match = np.where(imap['md5']==md5)
if len(match[0]) > 0:
row = match[0][0]
seek, length = str(imap[row][1]), str(imap[row][2])
# seek and length must be less than or equal to 2147483647
if imap[row][1] <= 2147483647 and imap[row][2] <= 2147483647:
seek, length = str(imap[row][1]), str(imap[row][2])
else:
seek, length = '\N', '\N'
# output
line = [ DB_VER,
JOBID,
Expand Down

0 comments on commit 43c27ac

Please sign in to comment.