aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
diff options
context:
space:
mode:
authorOren Hurvitz2014-06-29 18:49:27 +0300
committerOren Hurvitz2014-07-21 09:10:50 +0100
commitaf3498efdbd0b165a7e37095b1d8a9e54723993c (patch)
tree6ce955802b93f276b53e8a47f346222772e0a637 /OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
parentWrite UDP statistics to the log, not just the console (e.g., "show queues") (diff)
downloadopensim-SC-af3498efdbd0b165a7e37095b1d8a9e54723993c.zip
opensim-SC-af3498efdbd0b165a7e37095b1d8a9e54723993c.tar.gz
opensim-SC-af3498efdbd0b165a7e37095b1d8a9e54723993c.tar.bz2
opensim-SC-af3498efdbd0b165a7e37095b1d8a9e54723993c.tar.xz
In "show throttles", show the maximum drip rate. This shows whether a client is being throttled due to past poor performance.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
index 51433cb..39c9cb1 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
@@ -202,7 +202,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
202 202
203 // Create a token bucket throttle for this client that has the scene token bucket as a parent 203 // Create a token bucket throttle for this client that has the scene token bucket as a parent
204 m_throttleClient = new AdaptiveTokenBucket(parentThrottle, rates.Total, rates.AdaptiveThrottlesEnabled); 204 m_throttleClient = new AdaptiveTokenBucket(parentThrottle, rates.Total, rates.AdaptiveThrottlesEnabled);
205 // Create a token bucket throttle for the total categary with the client bucket as a throttle 205 // Create a token bucket throttle for the total category with the client bucket as a throttle
206 m_throttleCategory = new TokenBucket(m_throttleClient, 0); 206 m_throttleCategory = new TokenBucket(m_throttleClient, 0);
207 // Create an array of token buckets for this clients different throttle categories 207 // Create an array of token buckets for this clients different throttle categories
208 m_throttleCategories = new TokenBucket[THROTTLE_CATEGORY_COUNT]; 208 m_throttleCategories = new TokenBucket[THROTTLE_CATEGORY_COUNT];
@@ -262,6 +262,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
262 m_info.assetThrottle = (int)m_throttleCategories[(int)ThrottleOutPacketType.Asset].DripRate; 262 m_info.assetThrottle = (int)m_throttleCategories[(int)ThrottleOutPacketType.Asset].DripRate;
263 m_info.textureThrottle = (int)m_throttleCategories[(int)ThrottleOutPacketType.Texture].DripRate; 263 m_info.textureThrottle = (int)m_throttleCategories[(int)ThrottleOutPacketType.Texture].DripRate;
264 m_info.totalThrottle = (int)m_throttleCategory.DripRate; 264 m_info.totalThrottle = (int)m_throttleCategory.DripRate;
265 m_info.maxThrottle = (int)m_throttleClient.MaxDripRate;
265 266
266 return m_info; 267 return m_info;
267 } 268 }