projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
978be6e
)
util.throttle: Fix 'outstanding' return value
author
Matthew Wild
<mwild1@gmail.com>
Fri, 13 Jan 2012 23:30:32 +0000
(23:30 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 13 Jan 2012 23:30:32 +0000
(23:30 +0000)
util/throttle.lua
patch
|
blob
|
history
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