Skip to content

Commit

Permalink
Fix incorrect progress percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
SeoulSKY committed Dec 31, 2023
1 parent f4b586a commit 82238b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-server/public/unity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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%";
Expand Down

0 comments on commit 82238b7

Please sign in to comment.