diff --git a/Lib/ClassLibraryCommon/Analytics/LogRecordStreamReader.cs b/Lib/ClassLibraryCommon/Analytics/LogRecordStreamReader.cs index ed477b706..212cf4663 100644 --- a/Lib/ClassLibraryCommon/Analytics/LogRecordStreamReader.cs +++ b/Lib/ClassLibraryCommon/Analytics/LogRecordStreamReader.cs @@ -274,7 +274,7 @@ public void EndCurrentRecord() } else { - return long.Parse(temp, NumberStyles.None, CultureInfo.InvariantCulture); + return Math.Max(0, long.Parse(temp, NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture)); } }