From fd221286610eb152834d816d7ab600545734438f Mon Sep 17 00:00:00 2001 From: Alex Yong Date: Fri, 29 Mar 2024 19:16:55 +0000 Subject: [PATCH] renaming variable --- frontend/src/api/tus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/api/tus.js b/frontend/src/api/tus.js index 997ea75a..9764a532 100644 --- a/frontend/src/api/tus.js +++ b/frontend/src/api/tus.js @@ -135,7 +135,7 @@ function computeETA(state) { const remainingSize = totalSize - uploadedSize; const speedBytesPerSecond = state.speedMbyte * 1024 * 1024; const eta = remainingSize / speedBytesPerSecond; - const percentage = (uploadedSize / totalSize) * 100; + const uploadPercentage = (uploadedSize / totalSize) * 100; return { eta, uploadPercentage }; }