aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/ClientView.PacketQueue.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.PacketQueue.cs')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.PacketQueue.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.PacketQueue.cs b/OpenSim/Region/ClientStack/ClientView.PacketQueue.cs
index bd22970..1904bfa 100644
--- a/OpenSim/Region/ClientStack/ClientView.PacketQueue.cs
+++ b/OpenSim/Region/ClientStack/ClientView.PacketQueue.cs
@@ -231,7 +231,7 @@ namespace OpenSim.Region.ClientStack
231 switch (throttlePacketType) 231 switch (throttlePacketType)
232 { 232 {
233 case ThrottleOutPacketType.Resend: 233 case ThrottleOutPacketType.Resend:
234 if (ResendthrottleSentPeriod <= ResendthrottleOutbound && ResendOutgoingPacketQueue.Count == 0) 234 if (ResendthrottleSentPeriod <= ((int)(ResendthrottleOutbound / throttleTimeDivisor)) && ResendOutgoingPacketQueue.Count == 0)
235 { 235 {
236 throttleSentPeriod += item.Packet.ToBytes().Length; 236 throttleSentPeriod += item.Packet.ToBytes().Length;
237 ResendthrottleSentPeriod += item.Packet.ToBytes().Length; 237 ResendthrottleSentPeriod += item.Packet.ToBytes().Length;
@@ -243,7 +243,7 @@ namespace OpenSim.Region.ClientStack
243 } 243 }
244 break; 244 break;
245 case ThrottleOutPacketType.Texture: 245 case ThrottleOutPacketType.Texture:
246 if (TexturethrottleSentPeriod <= TexturethrottleOutbound && TextureOutgoingPacketQueue.Count == 0) 246 if (TexturethrottleSentPeriod <= ((int)(TexturethrottleOutbound / throttleTimeDivisor)) && TextureOutgoingPacketQueue.Count == 0)
247 { 247 {
248 throttleSentPeriod += item.Packet.ToBytes().Length; 248 throttleSentPeriod += item.Packet.ToBytes().Length;
249 TexturethrottleSentPeriod += item.Packet.ToBytes().Length; 249 TexturethrottleSentPeriod += item.Packet.ToBytes().Length;
@@ -255,7 +255,7 @@ namespace OpenSim.Region.ClientStack
255 } 255 }
256 break; 256 break;
257 case ThrottleOutPacketType.Task: 257 case ThrottleOutPacketType.Task:
258 if (TaskthrottleSentPeriod <= TaskthrottleOutbound && TaskOutgoingPacketQueue.Count == 0) 258 if (TaskthrottleSentPeriod <= ((int)(TexturethrottleOutbound / throttleTimeDivisor)) && TaskOutgoingPacketQueue.Count == 0)
259 { 259 {
260 throttleSentPeriod += item.Packet.ToBytes().Length; 260 throttleSentPeriod += item.Packet.ToBytes().Length;
261 TaskthrottleSentPeriod += item.Packet.ToBytes().Length; 261 TaskthrottleSentPeriod += item.Packet.ToBytes().Length;
@@ -267,7 +267,7 @@ namespace OpenSim.Region.ClientStack
267 } 267 }
268 break; 268 break;
269 case ThrottleOutPacketType.Land: 269 case ThrottleOutPacketType.Land:
270 if (LandthrottleSentPeriod <= LandthrottleOutbound && LandOutgoingPacketQueue.Count == 0) 270 if (LandthrottleSentPeriod <= ((int)(LandthrottleOutbound / throttleTimeDivisor)) && LandOutgoingPacketQueue.Count == 0)
271 { 271 {
272 throttleSentPeriod += item.Packet.ToBytes().Length; 272 throttleSentPeriod += item.Packet.ToBytes().Length;
273 LandthrottleSentPeriod += item.Packet.ToBytes().Length; 273 LandthrottleSentPeriod += item.Packet.ToBytes().Length;
@@ -279,7 +279,7 @@ namespace OpenSim.Region.ClientStack
279 } 279 }
280 break; 280 break;
281 case ThrottleOutPacketType.Asset: 281 case ThrottleOutPacketType.Asset:
282 if (AssetthrottleSentPeriod <= AssetthrottleOutbound && AssetOutgoingPacketQueue.Count == 0) 282 if (AssetthrottleSentPeriod <= ((int)(AssetthrottleOutbound / throttleTimeDivisor)) && AssetOutgoingPacketQueue.Count == 0)
283 { 283 {
284 throttleSentPeriod += item.Packet.ToBytes().Length; 284 throttleSentPeriod += item.Packet.ToBytes().Length;
285 AssetthrottleSentPeriod += item.Packet.ToBytes().Length; 285 AssetthrottleSentPeriod += item.Packet.ToBytes().Length;
@@ -291,7 +291,7 @@ namespace OpenSim.Region.ClientStack
291 } 291 }
292 break; 292 break;
293 case ThrottleOutPacketType.Cloud: 293 case ThrottleOutPacketType.Cloud:
294 if (CloudthrottleSentPeriod <= CloudthrottleOutbound && CloudOutgoingPacketQueue.Count == 0) 294 if (CloudthrottleSentPeriod <= ((int)(CloudthrottleOutbound / throttleTimeDivisor)) && CloudOutgoingPacketQueue.Count == 0)
295 { 295 {
296 throttleSentPeriod += item.Packet.ToBytes().Length; 296 throttleSentPeriod += item.Packet.ToBytes().Length;
297 CloudthrottleSentPeriod += item.Packet.ToBytes().Length; 297 CloudthrottleSentPeriod += item.Packet.ToBytes().Length;
@@ -303,7 +303,7 @@ namespace OpenSim.Region.ClientStack
303 } 303 }
304 break; 304 break;
305 case ThrottleOutPacketType.Wind: 305 case ThrottleOutPacketType.Wind:
306 if (WindthrottleSentPeriod <= WindthrottleOutbound && WindOutgoingPacketQueue.Count == 0) 306 if (WindthrottleSentPeriod <= ((int)(WindthrottleOutbound / throttleTimeDivisor)) && WindOutgoingPacketQueue.Count == 0)
307 { 307 {
308 throttleSentPeriod += item.Packet.ToBytes().Length; 308 throttleSentPeriod += item.Packet.ToBytes().Length;
309 WindthrottleSentPeriod += item.Packet.ToBytes().Length; 309 WindthrottleSentPeriod += item.Packet.ToBytes().Length;