From: Matthew Wild Date: Fri, 13 Jan 2012 23:30:32 +0000 (+0000) Subject: util.throttle: Fix 'outstanding' return value X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=cb2c1215a9a5df6c7e458dd788193aa6b41169c7;p=prosody.git util.throttle: Fix 'outstanding' return value --- 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