diff options
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs index 609b4ed..60b5c10 100644 --- a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | |||
@@ -29,6 +29,7 @@ using System; | |||
29 | using System.Timers; | 29 | using System.Timers; |
30 | using libsecondlife.Packets; | 30 | using libsecondlife.Packets; |
31 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
32 | using OpenSim.Framework.Statistics; | ||
32 | using OpenSim.Region.Environment.Interfaces; | 33 | using OpenSim.Region.Environment.Interfaces; |
33 | 34 | ||
34 | namespace OpenSim.Region.Environment.Scenes | 35 | namespace OpenSim.Region.Environment.Scenes |
@@ -114,7 +115,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
114 | 115 | ||
115 | public SimStatsReporter(Scene scene) | 116 | public SimStatsReporter(Scene scene) |
116 | { | 117 | { |
117 | |||
118 | statsUpdateFactor = (float)(statsUpdatesEveryMS / 1000); | 118 | statsUpdateFactor = (float)(statsUpdatesEveryMS / 1000); |
119 | m_scene = scene; | 119 | m_scene = scene; |
120 | ReportingRegion = scene.RegionInfo; | 120 | ReportingRegion = scene.RegionInfo; |
@@ -126,6 +126,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
126 | m_report.Interval = statsUpdatesEveryMS; | 126 | m_report.Interval = statsUpdatesEveryMS; |
127 | m_report.Elapsed += new ElapsedEventHandler(statsHeartBeat); | 127 | m_report.Elapsed += new ElapsedEventHandler(statsHeartBeat); |
128 | m_report.Enabled = true; | 128 | m_report.Enabled = true; |
129 | |||
130 | if (StatsManager.SimExtraStats != null) | ||
131 | OnSendStatsResult += StatsManager.SimExtraStats.ReceiveClassicSimStatsPacket; | ||
129 | } | 132 | } |
130 | 133 | ||
131 | public void SetUpdateMS(int ms) | 134 | public void SetUpdateMS(int ms) |