From 207e0e515fc142e08d743a82f39d413e4a0000b4 Mon Sep 17 00:00:00 2001 From: samogot Date: Sun, 13 May 2018 12:15:02 +0300 Subject: [PATCH] Change tokens to throttled in debug logs --- index.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/index.js b/index.js index a0b19f4..19e236d 100644 --- a/index.js +++ b/index.js @@ -324,21 +324,21 @@ Osmosis.prototype.resources = function () { } this.command.debug( - 'stack: ' + this.queue.count + ', ' + + 'stack: ' + this.queue.count + ', ' + - 'requests: ' + this.requests + - ' (' + this.queue.requests + ' queued), ' + + 'requests: ' + this.requests + + ' (' + this.queue.requests + ' queued), ' + - 'tokens: ' + parseInt(this.throttle.getTokensRemaining()) + ', ' + + 'throttled: ' + parseInt(this.throttle.getTokensRemaining()) + ', ' + - 'RAM: ' + toMB(mem.rss) + ' (' + memDiff + '), ' + + 'RAM: ' + toMB(mem.rss) + ' (' + memDiff + '), ' + - 'libxml: ' + ((libxml_mem / mem.rss) * 100).toFixed(1) + - '% (' + nodes + ' nodes), ' + + 'libxml: ' + ((libxml_mem / mem.rss) * 100).toFixed(1) + + '% (' + nodes + ' nodes), ' + - 'heap: ' + ((mem.heapUsed / mem.heapTotal) * 100) - .toFixed(0) + '% of ' + - toMB(mem.heapTotal) + 'heap: ' + ((mem.heapUsed / mem.heapTotal) * 100) + .toFixed(0) + '% of ' + + toMB(mem.heapTotal) ); memoryUsage = mem.rss;