diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-01-13 23:30:32 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-01-13 23:30:32 +0000 |
commit | d39558af1788626626d13e66f5b13cbd1228efa0 (patch) | |
tree | f544da747184c3bb45b786c8d38e667195fde9c6 | |
parent | ca964ddb88627847099e3dc18c29cdf263a8b8e5 (diff) | |
download | prosody-d39558af1788626626d13e66f5b13cbd1228efa0.tar.gz prosody-d39558af1788626626d13e66f5b13cbd1228efa0.zip |
util.throttle: Fix 'outstanding' return value
-rw-r--r-- | util/throttle.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/throttle.lua b/util/throttle.lua index 82b0a67b..2e901158 100644 --- a/util/throttle.lua +++ b/util/throttle.lua @@ -34,7 +34,7 @@ function throttle:poll(cost, split) if split then self.balance = 0; end - return false, balance, (cost-self.balance); + return false, balance, (cost-balance); end end |