From c29330272bd36f0b6b61c089712a5ffcacb57b39 Mon Sep 17 00:00:00 2001 From: Richard Lindner Date: Wed, 24 Apr 2024 13:29:16 +0200 Subject: [PATCH] off by one error --- src/submodules/capMultitenancy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/submodules/capMultitenancy.js b/src/submodules/capMultitenancy.js index 5e9a227..ee5e264 100644 --- a/src/submodules/capMultitenancy.js +++ b/src/submodules/capMultitenancy.js @@ -228,7 +228,7 @@ const _cdsUpgrade = async ( console.log("polled status %s for jobId %s", status, jobId); if (isMtxs) { const taskSummary = _getTaskSummary(tasks ?? []); - const countLength = String(upgradeTenantEntries.length - 1).length; + const countLength = String(upgradeTenantEntries.length).length; const [queued, running, failed, finished] = taskSummary.map((count) => String(count).padStart(countLength, "0")); console.log("task progress is queued/running: %s/%s | failed/finished: %s/%s", queued, running, failed, finished); if (!lastTaskSummary || lastTaskSummary.some((index, value) => taskSummary[index] !== value)) {