From 19096bd391ac88bbccda00e4660a061020118bb9 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Mon, 10 Oct 2011 22:23:42 +0100 Subject: Convert getLastReportedSimFPS() and getLastReportedSimStats() into more idiomatic LastReportedSimFPS and LastReportedSimStats on SimStatsReporter --- .../Region/Framework/Scenes/SimStatsReporter.cs | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs index ad64b55..b9d38d0 100644 --- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs @@ -78,6 +78,19 @@ namespace OpenSim.Region.Framework.Scenes UnAckedBytes = 24, } + /// + /// This is for llGetRegionFPS + /// + public float LastReportedSimFPS + { + get { return lastReportedSimFPS; } + } + + public float[] LastReportedSimStats + { + get { return lastReportedSimStats; } + } + // Sending a stats update every 3 seconds- private int statsUpdatesEveryMS = 3000; private float statsUpdateFactor = 0; @@ -437,19 +450,6 @@ namespace OpenSim.Region.Framework.Scenes m_activeScripts = count; } - /// - /// This is for llGetRegionFPS - /// - public float getLastReportedSimFPS() - { - return lastReportedSimFPS; - } - - public float[] getLastReportedSimStats() - { - return lastReportedSimStats; - } - public void AddPacketsStats(int inPackets, int outPackets, int unAckedBytes) { AddInPackets(inPackets); -- cgit v1.1