From 5e4d6cab00cb29cd088ab7b62ab13aff103b64cb Mon Sep 17 00:00:00 2001 From: onefang Date: Sun, 19 May 2019 21:24:15 +1000 Subject: Dump OpenSim 0.9.0.1 into it's own branch. --- .../Statistics/Logging/BinaryLoggingModule.cs | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'OpenSim/Region/CoreModules/Framework/Statistics/Logging') diff --git a/OpenSim/Region/CoreModules/Framework/Statistics/Logging/BinaryLoggingModule.cs b/OpenSim/Region/CoreModules/Framework/Statistics/Logging/BinaryLoggingModule.cs index f3436d1..3e6c8b5 100644 --- a/OpenSim/Region/CoreModules/Framework/Statistics/Logging/BinaryLoggingModule.cs +++ b/OpenSim/Region/CoreModules/Framework/Statistics/Logging/BinaryLoggingModule.cs @@ -45,14 +45,14 @@ namespace OpenSim.Region.CoreModules.Framework.Statistics.Logging public class BinaryLoggingModule : INonSharedRegionModule { private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); - + protected bool m_collectStats; protected Scene m_scene = null; - + public string Name { get { return "Binary Statistics Logging Module"; } } public Type ReplaceableInterface { get { return null; } } - public void Initialise(IConfigSource source) + public void Initialise(IConfigSource source) { try { @@ -81,23 +81,23 @@ namespace OpenSim.Region.CoreModules.Framework.Statistics.Logging // if it doesn't work, we don't collect anything } } - + public void AddRegion(Scene scene) { m_scene = scene; } - - public void RemoveRegion(Scene scene) + + public void RemoveRegion(Scene scene) { } - - public void RegionLoaded(Scene scene) + + public void RegionLoaded(Scene scene) { if (m_collectStats) m_scene.StatsReporter.OnSendStatsResult += LogSimStats; } - - public void Close() + + public void Close() { } @@ -107,12 +107,12 @@ namespace OpenSim.Region.CoreModules.Framework.Statistics.Logging public string Path; public System.IO.BinaryWriter Log; } - + static StatLogger m_statLog = null; static TimeSpan m_statLogPeriod = TimeSpan.FromSeconds(300); static string m_statsDir = String.Empty; static Object m_statLockObject = new Object(); - + private void LogSimStats(SimStats stats) { SimStatsPacket pack = new SimStatsPacket(); -- cgit v1.1