aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/PacketThrottle.cs
diff options
context:
space:
mode:
authorSean Dague2007-12-03 21:47:28 +0000
committerSean Dague2007-12-03 21:47:28 +0000
commit14d0a2ac7412951916e220c0f04e472fc2f114f0 (patch)
tree77c03c81897aa133e8623f5afbd381d53bda978c /OpenSim/Region/ClientStack/PacketThrottle.cs
parentFrom Justin Casey (IBM) (diff)
downloadopensim-SC_OLD-14d0a2ac7412951916e220c0f04e472fc2f114f0.zip
opensim-SC_OLD-14d0a2ac7412951916e220c0f04e472fc2f114f0.tar.gz
opensim-SC_OLD-14d0a2ac7412951916e220c0f04e472fc2f114f0.tar.bz2
opensim-SC_OLD-14d0a2ac7412951916e220c0f04e472fc2f114f0.tar.xz
further encapsulation of function in PacketQueue and PacketThrottle
Diffstat (limited to 'OpenSim/Region/ClientStack/PacketThrottle.cs')
-rw-r--r--OpenSim/Region/ClientStack/PacketThrottle.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/PacketThrottle.cs b/OpenSim/Region/ClientStack/PacketThrottle.cs
index 30d7c25..0f52802 100644
--- a/OpenSim/Region/ClientStack/PacketThrottle.cs
+++ b/OpenSim/Region/ClientStack/PacketThrottle.cs
@@ -89,7 +89,16 @@ namespace OpenSim.Region.ClientStack
89 public int Throttle 89 public int Throttle
90 { 90 {
91 get {return throttle;} 91 get {return throttle;}
92 set {throttle = value;} 92 set
93 {
94 if (value > max) {
95 throttle = max;
96 } else if (value < min) {
97 throttle = min;
98 } else {
99 throttle = value;
100 }
101 }
93 } 102 }
94 } 103 }
95} \ No newline at end of file 104} \ No newline at end of file