Skip to content
Snippets Groups Projects
Commit ea1c3ef5 authored by Martin Kuban's avatar Martin Kuban
Browse files

small fix for plotting

parent 68fc2bbb
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ def plot_FP_in_grid(byte_fingerprint, grid, show = True, label = '', axes = None
else:
width=abs(item[0]-plotgrid[index-1][0])
for idx, dos_value in enumerate(item[1]):
if bin_fp[bit_position]==1 and (bin_fp[bit_position+1] == 0 or idx == len(item[1])-1):
if bin_fp[bit_position]==1 and (idx == len(item[1])-1 or bin_fp[bit_position+1] == 0 ):
x.append(item[0])
y.append(dos_value)
all_width.append(width)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment