a few changes to stats. Array order coerent on users. give up on moses stats for now, since SimExtraStatsCollector cant reach SimStatsReport etc

This commit is contained in:
UbitUmarov
2015-09-04 23:07:25 +01:00
parent 1c93be198b
commit 2130984bef
3 changed files with 97 additions and 85 deletions

View File

@@ -205,7 +205,7 @@ namespace OpenSim.Region.CoreModules.Framework.Monitoring
m_scene,
"ScriptEventsPerSecondMonitor",
"Script Events",
m => m.Scene.StatsReporter.LastReportedSimStats[20],
m => m.Scene.StatsReporter.LastReportedSimStats[23],
m => string.Format("{0} per second", m.GetValue())));
m_staticMonitors.Add(

View File

@@ -271,8 +271,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
float totalFrameTime = stats[8];
// float netFrameTime = stats.StatsBlock[9].StatValue; // Ignored - not used by OpenSimulator
float physicsFrameTime = stats[10];
float otherFrameTime = stats[11];
// float imageFrameTime = stats.StatsBlock[12].StatValue; // Ignored
float otherFrameTime = stats[12];
// float imageFrameTime = stats.StatsBlock[11].StatValue; // Ignored
float inPacketsPerSecond = stats[13];
float outPacketsPerSecond = stats[14];
float unackedBytes = stats[15];
@@ -280,7 +280,7 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
float pendingDownloads = stats[17];
float pendingUploads = stats[18];
float activeScripts = stats[19];
float scriptLinesPerSecond = stats[20];
float scriptLinesPerSecond = stats[23];
StringBuilder sb = new StringBuilder();
sb.AppendFormat("Scene statistics for {0}\n", m_scene.RegionInfo.RegionName);