leaky-bucket
Advanced tools
Comparing version 0.1.12 to 0.1.13
@@ -179,3 +179,3 @@ !function() { | ||
if (this.queue.length && this.timer === null) { | ||
if (debug) log.debug('started a timer for the next item to be excuted, waiting %s milliseconds ...', Math.round((cost-this.left)*this.refillRate*1000)); | ||
if (debug) log.debug('started a timer for the next item to be excuted, waiting %s milliseconds ...', Math.ceil((cost-this.left)*this.refillRate*1000)); | ||
@@ -195,3 +195,3 @@ this.timer = setTimeout(function() { | ||
else log.warn('attempt to use item from the queue'); | ||
}.bind(this), Math.round((cost-this.left)*this.refillRate*1000)); | ||
}.bind(this), Math.ceil((cost-this.left)*this.refillRate*1000)); | ||
} | ||
@@ -198,0 +198,0 @@ } |
{ | ||
"name" : "leaky-bucket" | ||
, "description" : "A fast and efficient leaky bucket implementation" | ||
, "version" : "0.1.12" | ||
, "version" : "0.1.13" | ||
, "homepage" : "https://github.com/eventEmitter/leaky-bucket" | ||
@@ -6,0 +6,0 @@ , "author" : "Michael van der Weg <michael@joinbox.com> (http://joinbox.com/)" |
@@ -176,3 +176,3 @@ | ||
, maxTime = 11500 | ||
, minTime = 10000 | ||
, minTime = 10500 | ||
, capacity = 60 | ||
@@ -215,3 +215,3 @@ , items = 100 | ||
, maxTime = 11500 | ||
, minTime = 10000 | ||
, minTime = 10500 | ||
, capacity = 60 | ||
@@ -218,0 +218,0 @@ , items = 100 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21058