Skip to content

Commit

Permalink
off by one error
Browse files Browse the repository at this point in the history
  • Loading branch information
rlindner81 committed Apr 24, 2024
1 parent d42b591 commit c293302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/submodules/capMultitenancy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit c293302

Please sign in to comment.