util.throttle: Fix 'outstanding' return value
authorMatthew Wild <mwild1@gmail.com>
Fri, 13 Jan 2012 23:30:32 +0000 (23:30 +0000)
committerMatthew Wild <mwild1@gmail.com>
Fri, 13 Jan 2012 23:30:32 +0000 (23:30 +0000)
util/throttle.lua

index 82b0a67ba57903a8d184279b1afb2f10852d86c7..2e901158096e0cc4302b2d630e8df7968186310c 100644 (file)
@@ -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