From 7ecd08b8cadcfb5b7168911ea5497cd104b9bd87 Mon Sep 17 00:00:00 2001 From: DrSmugleaf Date: Fri, 26 Nov 2021 23:43:40 +0100 Subject: [PATCH] Move resetting accumulatedFrameTime in AdminLogSystem to the start of the method --- Content.Server/Administration/Logs/AdminLogSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Administration/Logs/AdminLogSystem.cs b/Content.Server/Administration/Logs/AdminLogSystem.cs index e763b9ab83..d8c26825bc 100644 --- a/Content.Server/Administration/Logs/AdminLogSystem.cs +++ b/Content.Server/Administration/Logs/AdminLogSystem.cs @@ -176,6 +176,8 @@ public partial class AdminLogSystem : SharedAdminLogSystem private async Task SaveLogs() { + _accumulatedFrameTime = 0; + // TODO ADMIN LOGS array pool var copy = new List(_logQueue.Count + _preRoundLogQueue.Count); @@ -200,8 +202,6 @@ public partial class AdminLogSystem : SharedAdminLogSystem _preRoundLogQueue.Clear(); PreRoundQueue.Set(0); - _accumulatedFrameTime = 0; - // ship the logs to Azkaban var task = Task.Run(async () => {