diff options
author | Melanie Thielker | 2008-12-17 09:55:10 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-12-17 09:55:10 +0000 |
commit | a5343c5404fc351172abd437e47ca3f34a1570db (patch) | |
tree | bb6e7328c54666316c8ad0374b6b9fc51d1f3c12 /OpenSim/Region | |
parent | Remove a major bottleneck in throttling code. (diff) | |
download | opensim-SC-a5343c5404fc351172abd437e47ca3f34a1570db.zip opensim-SC-a5343c5404fc351172abd437e47ca3f34a1570db.tar.gz opensim-SC-a5343c5404fc351172abd437e47ca3f34a1570db.tar.bz2 opensim-SC-a5343c5404fc351172abd437e47ca3f34a1570db.tar.xz |
Add repecting the min and max values back in
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/LLPacketThrottle.cs | 12 |
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(); |