diff options
author | Justin Clark-Casey (justincc) | 2010-11-17 19:39:12 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-11-17 22:55:19 +0000 |
commit | 2a17c39dfe97b0637aab9f24b7152d5080da0969 (patch) | |
tree | 9379ad95e4a6eff2769f4bcb25955b33fe222b33 /OpenSim/Region/ClientStack | |
parent | minor: add some method comments (diff) | |
download | opensim-SC_OLD-2a17c39dfe97b0637aab9f24b7152d5080da0969.zip opensim-SC_OLD-2a17c39dfe97b0637aab9f24b7152d5080da0969.tar.gz opensim-SC_OLD-2a17c39dfe97b0637aab9f24b7152d5080da0969.tar.bz2 opensim-SC_OLD-2a17c39dfe97b0637aab9f24b7152d5080da0969.tar.xz |
Fix "show queues" console command
For each agent, this command shows how many packets have been sent/received and how many bytes remain in each of the send queues (resend, land, texture, etc.)
Sometimes useful for diagnostics
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs index ca5a7bd..1812c08 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs | |||
@@ -246,11 +246,27 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
246 | throw new NotImplementedException(); | 246 | throw new NotImplementedException(); |
247 | } | 247 | } |
248 | 248 | ||
249 | /// <summary> | ||
250 | /// Return statistics information about client packet queues. | ||
251 | /// </summary> | ||
252 | /// | ||
253 | /// FIXME: This should really be done in a more sensible manner rather than sending back a formatted string. | ||
254 | /// | ||
255 | /// <returns></returns> | ||
249 | public string GetStats() | 256 | public string GetStats() |
250 | { | 257 | { |
251 | // TODO: ??? | 258 | return string.Format( |
252 | return string.Format("{0,7} {1,7} {2,7} {3,7} {4,7} {5,7} {6,7} {7,7} {8,7} {9,7}", | 259 | "{0,9} {1,10} {2,8} {3,7} {4,7} {5,7} {6,7} {7,9} {8,7} {9,7}", |
253 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); | 260 | PacketsSent, |
261 | PacketsReceived, | ||
262 | m_throttleCategories[(int)ThrottleOutPacketType.Resend].Content, | ||
263 | m_throttleCategories[(int)ThrottleOutPacketType.Land].Content, | ||
264 | m_throttleCategories[(int)ThrottleOutPacketType.Wind].Content, | ||
265 | m_throttleCategories[(int)ThrottleOutPacketType.Cloud].Content, | ||
266 | m_throttleCategories[(int)ThrottleOutPacketType.Task].Content, | ||
267 | m_throttleCategories[(int)ThrottleOutPacketType.Texture].Content, | ||
268 | m_throttleCategories[(int)ThrottleOutPacketType.Asset].Content, | ||
269 | m_throttleCategories[(int)ThrottleOutPacketType.State].Content); | ||
254 | } | 270 | } |
255 | 271 | ||
256 | public void SendPacketStats() | 272 | public void SendPacketStats() |