projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
util.throttle: Fix 'outstanding' return value
[prosody.git]
/
util
/
throttle.lua
diff --git
a/util/throttle.lua
b/util/throttle.lua
index 82b0a67ba57903a8d184279b1afb2f10852d86c7..2e901158096e0cc4302b2d630e8df7968186310c 100644
(file)
--- 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