-(dnsforward): start using lastProbeLineIdx in the Seek

This commit is contained in:
Andrey Meshkov
2020-02-21 12:57:12 +03:00
parent 696a6df6ba
commit 87c0410914
3 changed files with 41 additions and 15 deletions

View File

@@ -51,7 +51,7 @@ func NewQLogReader(files []string) (*QLogReader, error) {
func (r *QLogReader) Seek(timestamp int64) error {
for i := len(r.qFiles) - 1; i >= 0; i-- {
q := r.qFiles[i]
_, err := q.Seek(timestamp)
_, _, err := q.Seek(timestamp)
if err == nil {
// Our search is finished, we found the element we were looking for
// Update currentFile only, position is already set properly in the QLogFile