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 | 0f793b202fd0f4d72314d4220f9cea3da64efa10 (patch) | |
tree | 547577adb4a7e31b4d74d146aa16890ae5f5a046 /util | |
parent | 84e1a9189eb3116fdf5839199e84fb9815e53d60 (diff) | |
download | prosody-0f793b202fd0f4d72314d4220f9cea3da64efa10.tar.gz prosody-0f793b202fd0f4d72314d4220f9cea3da64efa10.zip |
util.throttle: Fix 'outstanding' return value
Diffstat (limited to 'util')
-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 |