1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fix issue with log reader

fix issue with searching names on webfront that could be parsed to hex
This commit is contained in:
RaidMax
2019-08-01 19:42:44 -05:00
parent 508d0f7aa3
commit 831e64eadb
4 changed files with 10 additions and 13 deletions

View File

@ -55,7 +55,9 @@ namespace IW4MAdmin.Application.IO
long fileSize = _reader.Length;
if (previousFileSize == 0)
{
previousFileSize = fileSize;
}
long fileDiff = fileSize - previousFileSize;
@ -63,9 +65,7 @@ namespace IW4MAdmin.Application.IO
if (fileDiff < 1 && fileSize != -1)
return;
previousFileSize = fileSize;
var events = await _reader.ReadEventsFromLog(_server, fileDiff, fileSize - fileDiff);
var events = await _reader.ReadEventsFromLog(_server, fileDiff, previousFileSize);
foreach (var ev in events)
{