Changeset

4467:fc8a22936b3c

util.throttle: Fix 'outstanding' return value
author Matthew Wild <mwild1@gmail.com>
date Fri, 13 Jan 2012 23:30:32 +0000
parents 4466:28e0bf9cf0f5
children 4468:938d878d8087
files util/throttle.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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