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 ca5a7bd..c4db5da 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPClient.cs | |||
@@ -246,11 +246,28 @@ 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,9} {2,9} {3,8} {4,7} {5,7} {6,7} {7,7} {8,9} {9,7} {10,7}", |
253 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); | 260 | PacketsSent, |
261 | PacketsReceived, | ||
262 | UnackedBytes, | ||
263 | m_throttleCategories[(int)ThrottleOutPacketType.Resend].Content, | ||
264 | m_throttleCategories[(int)ThrottleOutPacketType.Land].Content, | ||
265 | m_throttleCategories[(int)ThrottleOutPacketType.Wind].Content, | ||
266 | m_throttleCategories[(int)ThrottleOutPacketType.Cloud].Content, | ||
267 | m_throttleCategories[(int)ThrottleOutPacketType.Task].Content, | ||
268 | m_throttleCategories[(int)ThrottleOutPacketType.Texture].Content, | ||
269 | m_throttleCategories[(int)ThrottleOutPacketType.Asset].Content, | ||
270 | m_throttleCategories[(int)ThrottleOutPacketType.State].Content); | ||
254 | } | 271 | } |
255 | 272 | ||
256 | public void SendPacketStats() | 273 | public void SendPacketStats() |