Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qubqub committed Sep 21, 2023
1 parent 96296ee commit 11b14a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Entities/FallalyticsReporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private string RoundInfoToRegisterPbJsonString(RoundInfo round, bool isAnonymous
json += "\"onlineServiceId\":\"Anonymous\",";
json += "\"onlineServiceName\":\"Anonymous\",";
}
json += "\"record\":\"" + (round.Finish.Value - round.Start).Milliseconds + "\",";
json += "\"record\":\"" + (round.Finish.Value - round.Start).TotalMilliseconds + "\",";
json += "\"finishDate\":\"" + round.Finish.Value.ToString("o") + "\",";
json += "\"show\":\"" + round.ShowNameId + "\",";
json += "\"session\":\"" + round.SessionId + "\"}";
Expand Down
4 changes: 2 additions & 2 deletions Views/Stats.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2664,8 +2664,8 @@ private void LogFile_OnParsedLogLines(List<RoundInfo> round) {
// Task.Run(() => {
// if (OnlineServiceFlag != -1 && this.StatLookup.TryGetValue(stat.Name, out LevelStats level)) {
// LevelType levelType = (level?.Type).GetValueOrDefault();
// if (stat.Finish.HasValue && (levelType == LevelType.Race || levelType == LevelType.CreativeRace)) {
// RoundInfo filteredInfo = this.AllStats.Find(r => r.Finish.HasValue && stat.Finish.Value > r.Finish.Value && stat.ShowNameId.Equals(r.ShowNameId) && stat.Name.Equals(r.Name));
// if (stat.Finish.HasValue && levelType == LevelType.Race) {
// RoundInfo filteredInfo = this.AllStats.Find(r => r.Finish.HasValue && ((stat.Finish.Value - stat.Start).TotalMilliseconds > (r.Finish.Value - r.Start).TotalMilliseconds) && stat.ShowNameId.Equals(r.ShowNameId) && stat.Name.Equals(r.Name));
// if (filteredInfo == null) { FallalyticsReporter.RegisterPb(stat, this.CurrentSettings.FallalyticsAPIKey, this.CurrentSettings.EnableFallalyticsAnonymous); }
// }
// }
Expand Down

0 comments on commit 11b14a2

Please sign in to comment.