mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
let osGetRegionStats return a list with all the avaiable values (43 currently)
This commit is contained in:
@@ -3702,7 +3702,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
LSL_List ret = new LSL_List();
|
||||
float[] stats = World.StatsReporter.LastReportedSimStats;
|
||||
|
||||
for (int i = 0; i < 21; i++)
|
||||
for (int i = 0; i < stats.Length; i++)
|
||||
{
|
||||
ret.Add(new LSL_Float(stats[i]));
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ using OpenSim.Region.ScriptEngine.Shared.Api;
|
||||
using OpenSim.Region.ScriptEngine.Shared.Api.Plugins;
|
||||
using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
|
||||
using OpenSim.Region.ScriptEngine.XEngine.ScriptBase;
|
||||
using ScritTimer = OpenSim.Region.ScriptEngine.Shared.Api.Plugins.ScriptTimer;
|
||||
using ScriptTimer = OpenSim.Region.ScriptEngine.Shared.Api.Plugins.ScriptTimer;
|
||||
|
||||
using ScriptCompileQueue = OpenSim.Framework.LocklessQueue<object[]>;
|
||||
|
||||
@@ -599,7 +599,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
Dataserver ds = AsyncCommandManager.GetDataserverPlugin(this);
|
||||
sb.AppendFormat("Dataserver requests : {0}\n", ds != null ? ds.DataserverRequestsCount : 0);
|
||||
|
||||
ScritTimer t = AsyncCommandManager.GetTimerPlugin(this);
|
||||
ScriptTimer t = AsyncCommandManager.GetTimerPlugin(this);
|
||||
sb.AppendFormat("Timers : {0}\n", t != null ? t.TimersCount : 0);
|
||||
|
||||
Listener l = AsyncCommandManager.GetListenerPlugin(this);
|
||||
|
||||
Reference in New Issue
Block a user