From 82238b7b1c65a8c08ff48e212bb35b6cc24a835d Mon Sep 17 00:00:00 2001 From: SeoulSKY Date: Sat, 30 Dec 2023 21:28:33 -0600 Subject: [PATCH] Fix incorrect progress percentage --- web-server/public/unity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-server/public/unity.js b/web-server/public/unity.js index 1e6c243..c98cada 100644 --- a/web-server/public/unity.js +++ b/web-server/public/unity.js @@ -40,7 +40,7 @@ function main() { const downloadPercentage = Math.round(100 * progression / 0.3); progressBar.style.width = downloadPercentage + "%"; - if (progression < 0.9) { + if (downloadPercentage < 100) { spinnerText.innerText = `Downloading data... ${downloadPercentage}%`; } else { progressBar.style.width = "100%";