diff options
author | Steven Zielinski | 2015-04-28 15:52:25 -0400 |
---|---|---|
committer | Steven Zielinski | 2015-04-28 16:56:53 -0400 |
commit | bebdc29effc9c588ea14c98190f029662a0f46a0 (patch) | |
tree | 88dbd4b6342fc6636e11d74c6362703911fe0bc8 /OpenSim/Region | |
parent | Added in all metrics for Phase 1 except for Time Dilation. (diff) | |
download | opensim-SC-bebdc29effc9c588ea14c98190f029662a0f46a0.zip opensim-SC-bebdc29effc9c588ea14c98190f029662a0f46a0.tar.gz opensim-SC-bebdc29effc9c588ea14c98190f029662a0f46a0.tar.bz2 opensim-SC-bebdc29effc9c588ea14c98190f029662a0f46a0.tar.xz |
Changed the 10 value to be a constant value inside of the Scene called m_DefaultNumberFramesStored.
Test Plan: Tested on windows with the json stats reporter.
Reviewers: rlouden, ssirigam, martin, kboswell, clattin
Differential Revision: http://cr.irl.ucf.edu/D273
Diffstat (limited to 'OpenSim/Region')
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/Scene.cs | 19 | ||||
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | 2 |
2 files changed, 12 insertions, 9 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 906c862..345cc81 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -61,6 +61,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
61 | { | 61 | { |
62 | private const long DEFAULT_MIN_TIME_FOR_PERSISTENCE = 60L; | 62 | private const long DEFAULT_MIN_TIME_FOR_PERSISTENCE = 60L; |
63 | private const long DEFAULT_MAX_TIME_FOR_PERSISTENCE = 600L; | 63 | private const long DEFAULT_MAX_TIME_FOR_PERSISTENCE = 600L; |
64 | |||
65 | public const int m_DefaultNumberFramesStored = 10; | ||
64 | 66 | ||
65 | public delegate void SynchronizeSceneHandler(Scene scene); | 67 | public delegate void SynchronizeSceneHandler(Scene scene); |
66 | 68 | ||
@@ -1115,17 +1117,18 @@ namespace OpenSim.Region.Framework.Scenes | |||
1115 | // file | 1117 | // file |
1116 | if (statisticsConfig != null) | 1118 | if (statisticsConfig != null) |
1117 | { | 1119 | { |
1118 | // Create the StatsReporter using the number of frames to store | 1120 | // Create the StatsReporter using the number of frames to store |
1119 | // for the frame time statistics, or 10 frames if the config | 1121 | // for the frame time statistics, or 10 frames if the config |
1120 | // file doesn't contain a value | 1122 | // file doesn't contain a value |
1121 | StatsReporter = new SimStatsReporter(this, | 1123 | StatsReporter = new SimStatsReporter(this, |
1122 | statisticsConfig.GetInt("NumberOfFrames", 10)); | 1124 | statisticsConfig.GetInt("NumberOfFrames", |
1125 | m_DefaultNumberFramesStored)); | ||
1123 | } | 1126 | } |
1124 | else | 1127 | else |
1125 | { | 1128 | { |
1126 | // Create a StatsReporter with the current scene and a default | 1129 | // Create a StatsReporter with the current scene and a default |
1127 | // 10 frames stored for the frame time statistics | 1130 | // 10 frames stored for the frame time statistics |
1128 | StatsReporter = new SimStatsReporter(this); | 1131 | StatsReporter = new SimStatsReporter(this); |
1129 | } | 1132 | } |
1130 | 1133 | ||
1131 | StatsReporter.OnSendStatsResult += SendSimStatsPackets; | 1134 | StatsReporter.OnSendStatsResult += SendSimStatsPackets; |
diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs index 6182bcd..d90d2b3 100755 --- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | |||
@@ -217,7 +217,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
217 | // the Total, Simulation, Physics, and Network Frame Time; It is set to | 217 | // the Total, Simulation, Physics, and Network Frame Time; It is set to |
218 | // 10 by default but can be changed by the OpenSim.ini configuration file | 218 | // 10 by default but can be changed by the OpenSim.ini configuration file |
219 | // NumberOfFrames parameter | 219 | // NumberOfFrames parameter |
220 | private int m_numberFramesStored = 10; | 220 | private int m_numberFramesStored = Scene.m_DefaultNumberFramesStored; |
221 | 221 | ||
222 | // The arrays that will hold the time it took to run the past N frames, | 222 | // The arrays that will hold the time it took to run the past N frames, |
223 | // where N is the num_frames_to_average given by the configuration file | 223 | // where N is the num_frames_to_average given by the configuration file |