diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs index f675377..6485c1a 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs | |||
@@ -339,7 +339,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
339 | int texture = (int)(BitConverter.ToSingle(adjData, pos) * 0.125f); pos += 4; | 339 | int texture = (int)(BitConverter.ToSingle(adjData, pos) * 0.125f); pos += 4; |
340 | int asset = (int)(BitConverter.ToSingle(adjData, pos) * 0.125f); | 340 | int asset = (int)(BitConverter.ToSingle(adjData, pos) * 0.125f); |
341 | // State is a subcategory of task that we allocate a percentage to | 341 | // State is a subcategory of task that we allocate a percentage to |
342 | int state = 0; | 342 | // int state = 0; |
343 | int state = (int)((1.0f - STATE_TASK_PERCENTAGE) * (float)task); | ||
344 | task = (int)(STATE_TASK_PERCENTAGE * (float)task); | ||
343 | 345 | ||
344 | // Make sure none of the throttles are set below our packet MTU, | 346 | // Make sure none of the throttles are set below our packet MTU, |
345 | // otherwise a throttle could become permanently clogged | 347 | // otherwise a throttle could become permanently clogged |
@@ -350,6 +352,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
350 | task = Math.Max(task, LLUDPServer.MTU); | 352 | task = Math.Max(task, LLUDPServer.MTU); |
351 | texture = Math.Max(texture, LLUDPServer.MTU); | 353 | texture = Math.Max(texture, LLUDPServer.MTU); |
352 | asset = Math.Max(asset, LLUDPServer.MTU); | 354 | asset = Math.Max(asset, LLUDPServer.MTU); |
355 | state = Math.Max(state, LLUDPServer.MTU); | ||
353 | 356 | ||
354 | //int total = resend + land + wind + cloud + task + texture + asset; | 357 | //int total = resend + land + wind + cloud + task + texture + asset; |
355 | //m_log.DebugFormat("[LLUDPCLIENT]: {0} is setting throttles. Resend={1}, Land={2}, Wind={3}, Cloud={4}, Task={5}, Texture={6}, Asset={7}, Total={8}", | 358 | //m_log.DebugFormat("[LLUDPCLIENT]: {0} is setting throttles. Resend={1}, Land={2}, Wind={3}, Cloud={4}, Task={5}, Texture={6}, Asset={7}, Total={8}", |