diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SimStatsReporter.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs index f2cefb5..3e1fec2 100644 --- a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | |||
@@ -124,6 +124,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
124 | m_report.Enabled = true; | 124 | m_report.Enabled = true; |
125 | } | 125 | } |
126 | 126 | ||
127 | public void SetUpdateMS(int ms) | ||
128 | { | ||
129 | statsUpdatesEveryMS = ms; | ||
130 | statsUpdateFactor = (float)(statsUpdatesEveryMS / 1000); | ||
131 | m_report.Interval = statsUpdatesEveryMS; | ||
132 | } | ||
133 | |||
127 | private void statsHeartBeat(object sender, EventArgs e) | 134 | private void statsHeartBeat(object sender, EventArgs e) |
128 | { | 135 | { |
129 | m_report.Enabled = false; | 136 | m_report.Enabled = false; |