diff options
author | Justin Clark-Casey (justincc) | 2011-10-10 22:23:42 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-10-10 22:23:42 +0100 |
commit | 19096bd391ac88bbccda00e4660a061020118bb9 (patch) | |
tree | e2a15a9a1b1070ed0b20fafad81d125c372bbe87 /OpenSim/Region/ScriptEngine/Shared | |
parent | Provide a way to turn the MonitorModule on and off (diff) | |
download | opensim-SC-19096bd391ac88bbccda00e4660a061020118bb9.zip opensim-SC-19096bd391ac88bbccda00e4660a061020118bb9.tar.gz opensim-SC-19096bd391ac88bbccda00e4660a061020118bb9.tar.bz2 opensim-SC-19096bd391ac88bbccda00e4660a061020118bb9.tar.xz |
Convert getLastReportedSimFPS() and getLastReportedSimStats() into more idiomatic LastReportedSimFPS and LastReportedSimStats on SimStatsReporter
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index eabdce1..0820d01 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 | |||
5925 | public LSL_Float llGetRegionFPS() | 5925 | public LSL_Float llGetRegionFPS() |
5926 | { | 5926 | { |
5927 | m_host.AddScriptLPS(1); | 5927 | m_host.AddScriptLPS(1); |
5928 | return World.StatsReporter.getLastReportedSimFPS(); | 5928 | return World.StatsReporter.LastReportedSimFPS; |
5929 | } | 5929 | } |
5930 | 5930 | ||
5931 | 5931 | ||
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 6c3da20..2a7077b 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -2462,7 +2462,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
2462 | CheckThreatLevel(ThreatLevel.Moderate, "osGetRegionStats"); | 2462 | CheckThreatLevel(ThreatLevel.Moderate, "osGetRegionStats"); |
2463 | m_host.AddScriptLPS(1); | 2463 | m_host.AddScriptLPS(1); |
2464 | LSL_List ret = new LSL_List(); | 2464 | LSL_List ret = new LSL_List(); |
2465 | float[] stats = World.StatsReporter.getLastReportedSimStats(); | 2465 | float[] stats = World.StatsReporter.LastReportedSimStats; |
2466 | 2466 | ||
2467 | for (int i = 0; i < 21; i++) | 2467 | for (int i = 0; i < 21; i++) |
2468 | { | 2468 | { |