From 5146cb7a72d7f41dd9a3c022b48a75138259d977 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Fri, 3 Apr 2009 17:14:51 +0000 Subject: * refactor: Call StatsReporter methods directly rather than through Scene (as WebStatsModule was doing) * Assume that StatsReporter is always present (possibly as a no-op impl) rather than doing null checks --- OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/SimStatsReporter.cs') diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs index 039e9a7..91e1f2c 100644 --- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs @@ -407,7 +407,7 @@ namespace OpenSim.Region.Framework.Scenes // private static readonly log4net.ILog m_log // = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); - public void addPendingDownload(int count) + public void AddPendingDownloads(int count) { m_pendingDownloads += count; if (m_pendingDownloads < 0) m_pendingDownloads = 0; @@ -437,13 +437,18 @@ namespace OpenSim.Region.Framework.Scenes return lastReportedSimFPS; } - public void AddPacketsFromClientStats(int inPackets, int outPackets, int unAckedBytes) + public void AddPacketsStats(int inPackets, int outPackets, int unAckedBytes) { AddInPackets(inPackets); AddOutPackets(outPackets); AddunAckedBytes(unAckedBytes); - } + + public void AddAgentTime(int ms) + { + addFrameMS(ms); + addAgentMS(ms); + } #endregion } -- cgit v1.1