From 8d364d4c52f68803abdefb4dc9d51afddddfd272 Mon Sep 17 00:00:00 2001 From: Vladyslav Hrytsenko Date: Thu, 12 Dec 2024 22:34:52 +0200 Subject: [PATCH] added less progress printing --- packages/nexrender-action-decompress/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nexrender-action-decompress/index.js b/packages/nexrender-action-decompress/index.js index 188ac759..fa0d6aa9 100644 --- a/packages/nexrender-action-decompress/index.js +++ b/packages/nexrender-action-decompress/index.js @@ -54,7 +54,9 @@ const decompress = (job, settings, asset, action) => { }) myStream.on('progress', function (progress) { - if (settings.logger) settings.logger.log(`[action-decompress] Extracting ${progress.percent}%`); + if (progress.percent % 10 === 0) { + if (settings.logger) settings.logger.log(`[action-decompress] Extracting ${progress.percent}%`); + } }) myStream.on('end', function () {