util.throttle: Fix 'outstanding' return value

4 months ago

author
Matthew Wild <mwild1@gmail.com>
date
Fri Jan 13 23:30:32 2012 +0000
changeset 4467
fc8a22936b3c
parent 4466
28e0bf9cf0f5
child 4468
938d878d8087

util.throttle: Fix 'outstanding' return value

util/throttle.lua file | annotate | diff | revisions
     1.1 --- a/util/throttle.lua	Fri Jan 13 23:30:00 2012 +0000
     1.2 +++ b/util/throttle.lua	Fri Jan 13 23:30:32 2012 +0000
     1.3 @@ -34,7 +34,7 @@
     1.4  		if split then
     1.5  			self.balance = 0;
     1.6  		end
     1.7 -		return false, balance, (cost-self.balance);
     1.8 +		return false, balance, (cost-balance);
     1.9  	end
    1.10  end
    1.11  

mercurial