Skip to content

Commit

Permalink
Change tokens to throttled in debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
samogot committed Nov 13, 2018
1 parent c65262e commit 207e0e5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 207e0e5

Please sign in to comment.