diff options
author | Diva Canto | 2011-02-09 08:08:57 -0800 |
---|---|---|
committer | Diva Canto | 2011-02-09 08:08:57 -0800 |
commit | 477a869fb2cc615430d78cbad6a5a0eedf6b9bf8 (patch) | |
tree | 36768cf7ad53df4de6640cd7d4805d8d0dfeae17 /OpenSim/Region/ClientStack | |
parent | Detect negative dripAmounts in TokenBuckets. These negatives result from over... (diff) | |
download | opensim-SC-477a869fb2cc615430d78cbad6a5a0eedf6b9bf8.zip opensim-SC-477a869fb2cc615430d78cbad6a5a0eedf6b9bf8.tar.gz opensim-SC-477a869fb2cc615430d78cbad6a5a0eedf6b9bf8.tar.bz2 opensim-SC-477a869fb2cc615430d78cbad6a5a0eedf6b9bf8.tar.xz |
More detection of negatives.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/LindenUDP/TokenBucket.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/TokenBucket.cs b/OpenSim/Region/ClientStack/LindenUDP/TokenBucket.cs index dd52683..de8b521 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/TokenBucket.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/TokenBucket.cs | |||
@@ -213,6 +213,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
213 | content = Math.Min(content + dripAmount, maxBurst); | 213 | content = Math.Min(content + dripAmount, maxBurst); |
214 | lastDrip = now; | 214 | lastDrip = now; |
215 | 215 | ||
216 | if (content < 0) | ||
217 | Console.WriteLine("MAY DAY MAY DAY! Content is " + content + ". This should not happen"); | ||
218 | |||
216 | return true; | 219 | return true; |
217 | } | 220 | } |
218 | } | 221 | } |