mirror of
https://github.com/BDDSM/YY.EventLogReaderAssistant.git
synced 2024-11-26 18:11:45 +02:00
Исправлена ошибка подсчета количества событий при вызове "SetCurrentPosition"
This commit is contained in:
parent
c20b98e51a
commit
08c5b469a3
@ -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;
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ namespace YY.EventLogAssistant
|
||||
moved = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (moved && fileIndex >= 0 && currentLineNumber >= 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user