aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs
index dfbf74c..2cd7711 100644
--- a/OpenSim/Region/ClientStack/ClientView.cs
+++ b/OpenSim/Region/ClientStack/ClientView.cs
@@ -88,7 +88,7 @@ namespace OpenSim.Region.ClientStack
88 private int lastPacketsReceived = 0; 88 private int lastPacketsReceived = 0;
89 89
90 90
91 private int throttleOutbound = 32768; // Number of bytes allowed to go out per second. (256kbps per client) 91 private int throttleOutbound = 262144; // Number of bytes allowed to go out per second. (256kbps per client)
92 // TODO: Make this variable. Lower throttle on un-ack. Raise over time? 92 // TODO: Make this variable. Lower throttle on un-ack. Raise over time?
93 private int throttleSentPeriod = 0; // Number of bytes sent this period 93 private int throttleSentPeriod = 0; // Number of bytes sent this period
94 94
@@ -270,7 +270,8 @@ namespace OpenSim.Region.ClientStack
270 } 270 }
271 else 271 else
272 { 272 {
273 throttleSentPeriod += 768; // Average large packet size for now. 273 // TODO: May be a bit expensive doing this twice.
274 throttleSentPeriod += nextPacket.Packet.ToBytes().Length;
274 275
275 //is a out going packet 276 //is a out going packet
276 DebugPacket("OUT", nextPacket.Packet); 277 DebugPacket("OUT", nextPacket.Packet);