1
0
mirror of https://github.com/BDDSM/YY.EventLogReaderAssistant.git synced 2024-11-26 18:11:45 +02:00

Исправлена ошибка подсчета количества событий при вызове "SetCurrentPosition"

This commit is contained in:
YPermitin 2020-04-13 19:28:36 +05:00
parent c20b98e51a
commit 08c5b469a3
2 changed files with 4 additions and 2 deletions

View File

@ -182,6 +182,7 @@ namespace YY.EventLogAssistant
if (eventNumberToSkip <= 0)
{
_lastRowId = 0;
_currentFileEventNumber = 0;
return true;
}
@ -205,12 +206,13 @@ namespace YY.EventLogAssistant
if (reader.Read())
{
_lastRowId = reader.GetInt64OrDefault(0);
_currentFileEventNumber = eventNumber;
return true;
}
}
}
}
}
}
return false;
}

View File

@ -191,7 +191,7 @@ namespace YY.EventLogAssistant
moved = true;
break;
}
}
}
if (moved && fileIndex >= 0 && currentLineNumber >= 0)
{