From 8c037b629588c94a3ea7c701ef7ad836c68a7091 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 23 Jul 2021 03:19:11 +0100 Subject: [PATCH] pesty warning --- OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs index 0a1d937164..61519f6485 100755 --- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs @@ -50,7 +50,6 @@ namespace OpenSim.Region.Framework.Scenes public event SendStatResult OnSendStatsResult; public delegate void YourStatsAreWrong(); - private YourStatsAreWrong handlerStatsIncorrect; public event YourStatsAreWrong OnStatsIncorrect; // size of LastReportedSimFPS with extra stats. @@ -364,6 +363,8 @@ namespace OpenSim.Region.Framework.Scenes #endregion SceneGraph SG = m_scene.SceneGraph; + OnStatsIncorrect?.Invoke(); // number of agents may still drift so fix + m_activeScripts = SG.GetActiveScriptsCount(); m_scriptLinesPerSecond = SG.GetScriptLPS();