util.throttle: Fix 'outstanding' return value
authorMatthew Wild <mwild1@gmail.com>
Fri, 13 Jan 2012 23:30:32 +0000
changeset 4467 fc8a22936b3c
parent 4466 28e0bf9cf0f5
child 4468 938d878d8087
util.throttle: Fix 'outstanding' return value
util/throttle.lua
--- a/util/throttle.lua	Fri Jan 13 23:30:00 2012 +0000
+++ b/util/throttle.lua	Fri Jan 13 23:30:32 2012 +0000
@@ -34,7 +34,7 @@
 		if split then
 			self.balance = 0;
 		end
-		return false, balance, (cost-self.balance);
+		return false, balance, (cost-balance);
 	end
 end