Skip to content

Commit

Permalink
Revert "Update search_log.go"
Browse files Browse the repository at this point in the history
This reverts commit 650740f.
  • Loading branch information
baurine committed Jul 8, 2020
1 parent 650740f commit f628718
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions search_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,9 @@ func readLastLines(file *os.File, endCursor int64) string {

var size int64 = 512
if cursor < size {
cursor = 0
} else {
cursor -= size
size = cursor
}
cursor -= size

file.Seek(cursor, io.SeekStart)
chars := make([]byte, size)
Expand Down

0 comments on commit f628718

Please sign in to comment.