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 034d887abd
commit 1c66ac9117
4 changed files with 10 additions and 13 deletions

View File

@ -39,7 +39,7 @@ namespace IW4MAdmin.Application.IO
using (var rd = new StreamReader(new FileStream(LogFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite), Utilities.EncodingType))
{
char[] buff = new char[fileSizeDiff];
rd.BaseStream.Seek(-fileSizeDiff, SeekOrigin.End);
rd.BaseStream.Seek(startPosition, SeekOrigin.Begin);
await rd.ReadAsync(buff, 0, (int)fileSizeDiff);
var stringBuilder = new StringBuilder();