From 7fa1c979cf60a981200c4ddc3ea0ff8d0ddb2aa7 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Wed, 5 Oct 2011 23:36:27 +0100 Subject: rename WebStatsModules.m_scene to m_scenes since it's a list of scenes, not a single one --- OpenSim/Region/UserStatistics/WebStatsModule.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/UserStatistics/WebStatsModule.cs b/OpenSim/Region/UserStatistics/WebStatsModule.cs index fc95189..9d87c45 100644 --- a/OpenSim/Region/UserStatistics/WebStatsModule.cs +++ b/OpenSim/Region/UserStatistics/WebStatsModule.cs @@ -58,7 +58,7 @@ namespace OpenSim.Region.UserStatistics private static SqliteConnection dbConn; private Dictionary m_sessions = new Dictionary(); - private List m_scene = new List(); + private List m_scenes = new List(); private Dictionary reports = new Dictionary(); private Dictionary m_simstatsCounters = new Dictionary(); private const int updateStatsMod = 6; @@ -79,9 +79,9 @@ namespace OpenSim.Region.UserStatistics if (!enabled) return; - lock (m_scene) + lock (m_scenes) { - if (m_scene.Count == 0) + if (m_scenes.Count == 0) { //IConfig startupConfig = config.Configs["Startup"]; @@ -119,7 +119,7 @@ namespace OpenSim.Region.UserStatistics MainServer.Instance.AddHTTPHandler("/CAPS/VS/", HandleUnknownCAPSRequest); } - m_scene.Add(scene); + m_scenes.Add(scene); if (m_simstatsCounters.ContainsKey(scene.RegionInfo.RegionID)) m_simstatsCounters.Remove(scene.RegionInfo.RegionID); @@ -203,7 +203,7 @@ namespace OpenSim.Region.UserStatistics repParams["DatabaseConnection"] = dbConn; - repParams["Scenes"] = m_scene; + repParams["Scenes"] = m_scenes; repParams["SimStats"] = m_simstatsCounters; repParams["LogLines"] = m_loglines; repParams["Reports"] = reports; @@ -283,7 +283,7 @@ namespace OpenSim.Region.UserStatistics dbConn.Close(); dbConn.Dispose(); m_sessions.Clear(); - m_scene.Clear(); + m_scenes.Clear(); reports.Clear(); m_simstatsCounters.Clear(); } @@ -319,10 +319,10 @@ namespace OpenSim.Region.UserStatistics protected virtual void AddHandlers() { - lock (m_scene) + lock (m_scenes) { - updateLogMod = m_scene.Count * 2; - foreach (Scene scene in m_scene) + updateLogMod = m_scenes.Count * 2; + foreach (Scene scene in m_scenes) { scene.EventManager.OnRegisterCaps += OnRegisterCaps; scene.EventManager.OnDeregisterCaps += OnDeRegisterCaps; @@ -418,9 +418,9 @@ namespace OpenSim.Region.UserStatistics public UUID GetRegionUUIDFromHandle(ulong regionhandle) { - lock (m_scene) + lock (m_scenes) { - foreach (Scene scene in m_scene) + foreach (Scene scene in m_scenes) { if (scene.RegionInfo.RegionHandle == regionhandle) return scene.RegionInfo.RegionID; -- cgit v1.1