diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs index a4738ff..ed0e60d 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs | |||
@@ -247,11 +247,28 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
247 | throw new NotImplementedException(); | 247 | throw new NotImplementedException(); |
248 | } | 248 | } |
249 | 249 | ||
250 | /// <summary> | ||
251 | /// Return statistics information about client packet queues. | ||
252 | /// </summary> | ||
253 | /// | ||
254 | /// FIXME: This should really be done in a more sensible manner rather than sending back a formatted string. | ||
255 | /// | ||
256 | /// <returns></returns> | ||
250 | public string GetStats() | 257 | public string GetStats() |
251 | { | 258 | { |
252 | // TODO: ??? | 259 | return string.Format( |
253 | return string.Format("{0,7} {1,7} {2,7} {3,7} {4,7} {5,7} {6,7} {7,7} {8,7} {9,7}", | 260 | "{0,9} {1,9} {2,9} {3,8} {4,7} {5,7} {6,7} {7,7} {8,9} {9,7} {10,7}", |
254 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); | 261 | PacketsSent, |
262 | PacketsReceived, | ||
263 | UnackedBytes, | ||
264 | m_throttleCategories[(int)ThrottleOutPacketType.Resend].Content, | ||
265 | m_throttleCategories[(int)ThrottleOutPacketType.Land].Content, | ||
266 | m_throttleCategories[(int)ThrottleOutPacketType.Wind].Content, | ||
267 | m_throttleCategories[(int)ThrottleOutPacketType.Cloud].Content, | ||
268 | m_throttleCategories[(int)ThrottleOutPacketType.Task].Content, | ||
269 | m_throttleCategories[(int)ThrottleOutPacketType.Texture].Content, | ||
270 | m_throttleCategories[(int)ThrottleOutPacketType.Asset].Content, | ||
271 | m_throttleCategories[(int)ThrottleOutPacketType.State].Content); | ||
255 | } | 272 | } |
256 | 273 | ||
257 | public void SendPacketStats() | 274 | public void SendPacketStats() |