Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chivay committed Aug 20, 2020
1 parent 40949a6 commit e3c26ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drakcore/drakcore/postprocess/logindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def generate_file_index(file, chunk_size = 1024 * 1024):
for index, line in enumerate(file):
# when we've reached the limit insert new marker
if current_chunk_size + len(line) >= chunk_size:
markers.append(((index + 1), file_offset))
markers.append(dict(line=index + 1,
offset=file_offset))
current_chunk_size = 0

current_chunk_size += len(line)
Expand Down

0 comments on commit e3c26ce

Please sign in to comment.