Skip to content

Commit

Permalink
Update goatrider.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hAxe1 authored Nov 20, 2018
1 parent fbad35e commit 3c452d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion goatrider.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,10 @@ def parse_ip_file( fileinput ):
len_cl = len(content_lines)
max_lines = MAX_LINES
if len_cl < MAX_LINES:
max_lines = len_cl/CPU_CORES
if len_cl/CPU_CORES < 1:
max_lines = 1
else:
max_lines = len_cl/CPU_CORES
tmp = []
for index in range( 0, len_cl, max_lines):
if index+max_lines > len_cl:
Expand Down

1 comment on commit 3c452d9

@hAxe1
Copy link
Owner Author

@hAxe1 hAxe1 commented on 3c452d9 Nov 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When testing with a small IP list, max_lines was getting set to 0. Should fix BinaryDefense#2

Please sign in to comment.