From 50f2cb6c29b2ff77786c129a089093049b076cac Mon Sep 17 00:00:00 2001 From: Natsumi Date: Mon, 13 Dec 2021 08:05:13 +1300 Subject: [PATCH] Format change --- LogWatcher.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/LogWatcher.cs b/LogWatcher.cs index 1b02e6b0..72c33c1d 100644 --- a/LogWatcher.cs +++ b/LogWatcher.cs @@ -193,9 +193,9 @@ namespace VRCX if (logContext.incomingJson) { logContext.jsonChunk += line; - if (line == "}}") + if (line == "}") { - var data = logContext.jsonChunk.Replace("{{", "{").Replace("}}", "}"); + var data = logContext.jsonChunk; ParseLogPhotonEvent(fileInfo, data, logContext.jsonDate, logContext.photonEvent); logContext.incomingJson = false; logContext.jsonChunk = String.Empty; @@ -231,9 +231,9 @@ namespace VRCX var offset = 34; if (line[offset] == '[') { - if (string.Compare(line, offset, "[Network Data] OnEvent: PLAYER: ", 0, 33, StringComparison.Ordinal) == 0) + if (string.Compare(line, offset, "[Network Data] OnEvent: PLAYER: ", 0, 34, StringComparison.Ordinal) == 0) { - logContext.photonEvent = line.Substring(offset + 33); + logContext.photonEvent = line.Substring(offset + 34); logContext.incomingJson = true; logContext.jsonChunk = String.Empty; logContext.jsonDate = ConvertLogTimeToISO8601(line);