Merge branch 'master' of /var/git/opensim/
commit
e62bef2e90
|
@ -599,8 +599,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
StatsReporter.OnSendStatsResult += SendSimStatsPackets;
|
StatsReporter.OnSendStatsResult += SendSimStatsPackets;
|
||||||
StatsReporter.OnStatsIncorrect += m_sceneGraph.RecalculateStats;
|
StatsReporter.OnStatsIncorrect += m_sceneGraph.RecalculateStats;
|
||||||
|
|
||||||
StatsReporter.SetObjectCapacity(RegionInfo.ObjectCapacity);
|
|
||||||
|
|
||||||
// Old
|
// Old
|
||||||
/*
|
/*
|
||||||
m_simulatorVersion = simulatorVersion
|
m_simulatorVersion = simulatorVersion
|
||||||
|
|
|
@ -108,7 +108,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
private int m_activeScripts = 0;
|
private int m_activeScripts = 0;
|
||||||
private int m_scriptLinesPerSecond = 0;
|
private int m_scriptLinesPerSecond = 0;
|
||||||
|
|
||||||
private int objectCapacity = 45000;
|
private int m_objectCapacity = 45000;
|
||||||
|
|
||||||
private Scene m_scene;
|
private Scene m_scene;
|
||||||
|
|
||||||
|
@ -124,6 +124,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
m_scene = scene;
|
m_scene = scene;
|
||||||
ReportingRegion = scene.RegionInfo;
|
ReportingRegion = scene.RegionInfo;
|
||||||
|
|
||||||
|
m_objectCapacity = scene.RegionInfo.ObjectCapacity;
|
||||||
m_report.AutoReset = true;
|
m_report.AutoReset = true;
|
||||||
m_report.Interval = statsUpdatesEveryMS;
|
m_report.Interval = statsUpdatesEveryMS;
|
||||||
m_report.Elapsed += new ElapsedEventHandler(statsHeartBeat);
|
m_report.Elapsed += new ElapsedEventHandler(statsHeartBeat);
|
||||||
|
@ -271,7 +272,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
SimStats simStats
|
SimStats simStats
|
||||||
= new SimStats(
|
= new SimStats(
|
||||||
ReportingRegion.RegionLocX, ReportingRegion.RegionLocY, regionFlags, (uint)objectCapacity, rb, sb, m_scene.RegionInfo.originRegionID);
|
ReportingRegion.RegionLocX, ReportingRegion.RegionLocY, regionFlags, (uint)m_objectCapacity, rb, sb, m_scene.RegionInfo.originRegionID);
|
||||||
|
|
||||||
handlerSendStatResult = OnSendStatsResult;
|
handlerSendStatResult = OnSendStatsResult;
|
||||||
if (handlerSendStatResult != null)
|
if (handlerSendStatResult != null)
|
||||||
|
@ -435,11 +436,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
m_activeScripts = count;
|
m_activeScripts = count;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetObjectCapacity(int objects)
|
|
||||||
{
|
|
||||||
objectCapacity = objects;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This is for llGetRegionFPS
|
/// This is for llGetRegionFPS
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue