diff options
author | lbsa71 | 2008-12-18 13:16:41 +0000 |
---|---|---|
committer | lbsa71 | 2008-12-18 13:16:41 +0000 |
commit | 56f1b03cd0eccb8549b3f87f76b2a9494239b585 (patch) | |
tree | 4981057745584d1cb08b97d33db601c786fd4b31 /OpenSim/Region/ClientStack | |
parent | * Add a nasty hack to try and give the HttpServer a few extra lives until we ... (diff) | |
download | opensim-SC_OLD-56f1b03cd0eccb8549b3f87f76b2a9494239b585.zip opensim-SC_OLD-56f1b03cd0eccb8549b3f87f76b2a9494239b585.tar.gz opensim-SC_OLD-56f1b03cd0eccb8549b3f87f76b2a9494239b585.tar.bz2 opensim-SC_OLD-56f1b03cd0eccb8549b3f87f76b2a9494239b585.tar.xz |
* Added "show queues" command that shows throttling queues for all clients.
*** This only works for LLCLientView at the moment ***
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 9d6e3af..5ce5235 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | |||
@@ -52,7 +52,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
52 | /// Handles new client connections | 52 | /// Handles new client connections |
53 | /// Constructor takes a single Packet and authenticates everything | 53 | /// Constructor takes a single Packet and authenticates everything |
54 | /// </summary> | 54 | /// </summary> |
55 | public class LLClientView : IClientAPI, IClientCore, IClientIM, IClientChat | 55 | public class LLClientView : IClientAPI, IClientCore, IClientIM, IClientChat, IStatsCollector |
56 | { | 56 | { |
57 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 57 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
58 | 58 | ||
@@ -8093,5 +8093,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
8093 | } | 8093 | } |
8094 | } | 8094 | } |
8095 | } | 8095 | } |
8096 | |||
8097 | public string Report() | ||
8098 | { | ||
8099 | LLPacketHandler handler = (LLPacketHandler) m_PacketHandler; | ||
8100 | return handler.PacketQueue.GetStats(); | ||
8101 | } | ||
8096 | } | 8102 | } |
8097 | } | 8103 | } |
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs index 4383493..365c35f 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs | |||
@@ -610,7 +610,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
610 | // See IPullStatsProvider | 610 | // See IPullStatsProvider |
611 | public string GetStats() | 611 | public string GetStats() |
612 | { | 612 | { |
613 | return string.Format("{0,7} {1,7} {2,7} {3,7} {4,7} {5,7} {6,7} {7,7} {8,7} {9,7}", | 613 | return string.Format("{0,7} {1,7} {2,7} {3,7} {4,7} {5,7} {6,7} {7,7} {8,7} {9,7}", |
614 | SendQueue.Count(), | 614 | SendQueue.Count(), |
615 | IncomingPacketQueue.Count, | 615 | IncomingPacketQueue.Count, |
616 | OutgoingPacketQueue.Count, | 616 | OutgoingPacketQueue.Count, |