aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP
diff options
context:
space:
mode:
authorMelanie Thielker2008-12-17 09:55:10 +0000
committerMelanie Thielker2008-12-17 09:55:10 +0000
commita5343c5404fc351172abd437e47ca3f34a1570db (patch)
treebb6e7328c54666316c8ad0374b6b9fc51d1f3c12 /OpenSim/Region/ClientStack/LindenUDP
parentRemove a major bottleneck in throttling code. (diff)
downloadopensim-SC_OLD-a5343c5404fc351172abd437e47ca3f34a1570db.zip
opensim-SC_OLD-a5343c5404fc351172abd437e47ca3f34a1570db.tar.gz
opensim-SC_OLD-a5343c5404fc351172abd437e47ca3f34a1570db.tar.bz2
opensim-SC_OLD-a5343c5404fc351172abd437e47ca3f34a1570db.tar.xz
Add repecting the min and max values back in
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLPacketThrottle.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketThrottle.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketThrottle.cs
index 70a9dec..31efee7 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketThrottle.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketThrottle.cs
@@ -100,6 +100,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP
100 get { return m_currentThrottle; } 100 get { return m_currentThrottle; }
101 set 101 set
102 { 102 {
103 if (value < m_minAllowableThrottle)
104 {
105 m_currentThrottle = m_minAllowableThrottle;
106 CalcBits();
107 return;
108 }
109 if (value > m_maxAllowableThrottle)
110 {
111 m_currentThrottle = m_maxAllowableThrottle;
112 CalcBits();
113 return;
114 }
103 m_currentThrottle = value; 115 m_currentThrottle = value;
104 116
105 CalcBits(); 117 CalcBits();