diff options
author | Teravus Ovares | 2008-01-16 03:33:46 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-01-16 03:33:46 +0000 |
commit | 5958192398bcb48fa5ec4dfd2b2485f798e525a6 (patch) | |
tree | f52479b2229827289f247aa6f725315994e0a6bb /OpenSim/Region/Environment/Scenes | |
parent | * Refactored the SimStatsReporter to reuse the same packet and packet blocks ... (diff) | |
download | opensim-SC_OLD-5958192398bcb48fa5ec4dfd2b2485f798e525a6.zip opensim-SC_OLD-5958192398bcb48fa5ec4dfd2b2485f798e525a6.tar.gz opensim-SC_OLD-5958192398bcb48fa5ec4dfd2b2485f798e525a6.tar.bz2 opensim-SC_OLD-5958192398bcb48fa5ec4dfd2b2485f798e525a6.tar.xz |
* Added Packets In/s, Packets Out/s and Current un_acked Packets to the SimStatsReporter
* This doesn't take into account the throttler, it just assumes the throttle limit isn't reached.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 9af43f5..16055de 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -1228,6 +1228,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1228 | 1228 | ||
1229 | client.OnGrabObject += ProcessObjectGrab; | 1229 | client.OnGrabObject += ProcessObjectGrab; |
1230 | client.OnAvatarPickerRequest += ProcessAvatarPickerRequest; | 1230 | client.OnAvatarPickerRequest += ProcessAvatarPickerRequest; |
1231 | client.OnPacketStats += AddPacketStats; | ||
1231 | 1232 | ||
1232 | EventManager.TriggerOnNewClient(client); | 1233 | EventManager.TriggerOnNewClient(client); |
1233 | } | 1234 | } |
@@ -1759,6 +1760,13 @@ namespace OpenSim.Region.Environment.Scenes | |||
1759 | return CommsManager.GetUserFriendList(ownerID); | 1760 | return CommsManager.GetUserFriendList(ownerID); |
1760 | } | 1761 | } |
1761 | 1762 | ||
1763 | public void AddPacketStats(int inPackets, int outPackets, int unAckedBytes) | ||
1764 | { | ||
1765 | m_statsReporter.AddInPackets(inPackets); | ||
1766 | m_statsReporter.AddOutPackets(outPackets); | ||
1767 | m_statsReporter.AddunAckedBytes(unAckedBytes); | ||
1768 | } | ||
1769 | |||
1762 | #endregion | 1770 | #endregion |
1763 | 1771 | ||
1764 | #region Console Commands | 1772 | #region Console Commands |