aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xOpenSim/Region/Framework/Scenes/SimStatsReporter.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
index 7f6a1cd..5fe0551 100755
--- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
+++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
@@ -412,6 +412,8 @@ namespace OpenSim.Region.Framework.Scenes
412 if (m_otherMS < 0) 412 if (m_otherMS < 0)
413 m_otherMS = 0; 413 m_otherMS = 0;
414 414
415 float scriptTimeMS = m_scene.GetAndResetScriptExecutionTime();
416
415 for (int i = 0; i < m_statisticViewerArraySize; i++) 417 for (int i = 0; i < m_statisticViewerArraySize; i++)
416 { 418 {
417 sb[i] = new SimStatsPacket.StatBlock(); 419 sb[i] = new SimStatsPacket.StatBlock();
@@ -533,7 +535,7 @@ namespace OpenSim.Region.Framework.Scenes
533 sb[36].StatValue = 0; 535 sb[36].StatValue = 0;
534 536
535 sb[37].StatID = (uint)Stats.ScriptMS; 537 sb[37].StatID = (uint)Stats.ScriptMS;
536 sb[37].StatValue = 0; 538 sb[37].StatValue = scriptTimeMS * perframefactor;
537 539
538 540
539 for (int i = 0; i < m_statisticViewerArraySize; i++) 541 for (int i = 0; i < m_statisticViewerArraySize; i++)