mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Detect negative dripAmounts in TokenBuckets. These negatives result from overflown integer operations. Also added Total to the scene throttles in show throttles.
This commit is contained in:
@@ -207,6 +207,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
int dripAmount = deltaMS * tokensPerMS;
|
||||
|
||||
if (dripAmount < 0)
|
||||
Console.WriteLine("MAY DAY MAY DAY! Drip amount is " + dripAmount + ". This should not happen");
|
||||
|
||||
content = Math.Min(content + dripAmount, maxBurst);
|
||||
lastDrip = now;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user