aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
index 81c789a..39ade56 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
@@ -413,10 +413,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
413 } 413 }
414 } 414 }
415 415
416
417 private static int ScaleThrottle(int value, int curmax, int newmax) 416 private static int ScaleThrottle(int value, int curmax, int newmax)
418 { 417 {
419 return (value / curmax) * newmax; 418 return (int)((value / (float)curmax) * newmax);
420 } 419 }
421 420
422 public byte[] GetThrottlesPacked(float multiplier) 421 public byte[] GetThrottlesPacked(float multiplier)