aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-04-03 17:14:51 +0000
committerJustin Clarke Casey2009-04-03 17:14:51 +0000
commit5146cb7a72d7f41dd9a3c022b48a75138259d977 (patch)
tree0b1045b389dc49083cebf64798b80a7ea326cd42 /OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
parentAdded one more delegate to Caps, and a few guards, so that these objects can ... (diff)
downloadopensim-SC_OLD-5146cb7a72d7f41dd9a3c022b48a75138259d977.zip
opensim-SC_OLD-5146cb7a72d7f41dd9a3c022b48a75138259d977.tar.gz
opensim-SC_OLD-5146cb7a72d7f41dd9a3c022b48a75138259d977.tar.bz2
opensim-SC_OLD-5146cb7a72d7f41dd9a3c022b48a75138259d977.tar.xz
* 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
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SimStatsReporter.cs11
1 files changed, 8 insertions, 3 deletions
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
407// private static readonly log4net.ILog m_log 407// private static readonly log4net.ILog m_log
408// = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 408// = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
409 409
410 public void addPendingDownload(int count) 410 public void AddPendingDownloads(int count)
411 { 411 {
412 m_pendingDownloads += count; 412 m_pendingDownloads += count;
413 if (m_pendingDownloads < 0) m_pendingDownloads = 0; 413 if (m_pendingDownloads < 0) m_pendingDownloads = 0;
@@ -437,13 +437,18 @@ namespace OpenSim.Region.Framework.Scenes
437 return lastReportedSimFPS; 437 return lastReportedSimFPS;
438 } 438 }
439 439
440 public void AddPacketsFromClientStats(int inPackets, int outPackets, int unAckedBytes) 440 public void AddPacketsStats(int inPackets, int outPackets, int unAckedBytes)
441 { 441 {
442 AddInPackets(inPackets); 442 AddInPackets(inPackets);
443 AddOutPackets(outPackets); 443 AddOutPackets(outPackets);
444 AddunAckedBytes(unAckedBytes); 444 AddunAckedBytes(unAckedBytes);
445
446 } 445 }
446
447 public void AddAgentTime(int ms)
448 {
449 addFrameMS(ms);
450 addAgentMS(ms);
451 }
447 452
448 #endregion 453 #endregion
449 } 454 }