From 521418bd2550ebe40b6f6a429b057c7df8e87acb Mon Sep 17 00:00:00 2001 From: softsimon Date: Fri, 20 May 2022 21:50:01 +0400 Subject: [PATCH] Progressbar calculation fix --- backend/src/routes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/routes.ts b/backend/src/routes.ts index f2e7550e9..cf28dd71d 100644 --- a/backend/src/routes.ts +++ b/backend/src/routes.ts @@ -780,7 +780,7 @@ class Routes { try { const transaction = await transactionUtils.$getTransactionExtended(txIds[i], true, true); transactions.push(transaction); - loadingIndicators.setProgress('blocktxs-' + req.params.hash, (i + 1) / endIndex * 100); + loadingIndicators.setProgress('blocktxs-' + req.params.hash, (i - startingIndex + 1) / (endIndex - startingIndex) * 100); } catch (e) { logger.debug('getBlockTransactions error: ' + (e instanceof Error ? e.message : e)); }