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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user