From 2b290793ab7153c956db5637dd27dfbbd0a1cf98 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Mon, 10 Oct 2011 21:54:08 +0100 Subject: refactor: have lsl and ossl interrogate scene.StatsReporter directly rather than going through scene I know this goes against the law of demeter but I don't think it's that useful here and I'd rather get rid of nasty little wrapper methods --- OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs') diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 42e09fc..eabdce1 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -5925,7 +5925,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api public LSL_Float llGetRegionFPS() { m_host.AddScriptLPS(1); - return World.SimulatorFPS; + return World.StatsReporter.getLastReportedSimFPS(); } -- cgit v1.1