Changeset

4470:0209bd5c4259

util.throttle: Fix 'outstanding' return value
author Matthew Wild <mwild1@gmail.com>
date Fri, 13 Jan 2012 23:30:32 +0000
parents 4469:500735931677
children 4471:ea24d73e6c94
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