Skip to content

Commit

Permalink
Account for last line targeted and flushed from binsearch for #604
Browse files Browse the repository at this point in the history
  • Loading branch information
machawk1 committed Mar 1, 2020
1 parent 0f21568 commit c43c959
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ipwb/replay.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ def bin_search(iter, key, datetime=None):
iter.readline() # Purge rest of current line
line = iter.readline() # Read the next full line

if len(line) == 0:
right = mid
continue

surtk, rest = line.split(maxsplit=1)
datetimeK = rest.split()[0].decode()
if surtk[-1:] == b'/':
Expand Down

0 comments on commit c43c959

Please sign in to comment.