From 03993aa773a64f16373ac94ee1f8c2b91532e876 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 11 Aug 2026 20:08:08 +0200 Subject: [PATCH] fix: Prevent estimated progress from reaching 100% (#1374) --- web/js/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/js/script.js b/web/js/script.js index 85be716..2be0f83 100644 --- a/web/js/script.js +++ b/web/js/script.js @@ -296,14 +296,14 @@ function estimateProgress(bytes) { } if (previousBoundary === 0) { - return Math.min(bytes / boundary * 100, 100); + return Math.min(bytes / boundary * 100, 99.9); } var rangeProgress = (bytes - previousBoundary) / (boundary - previousBoundary); - return 30 + Math.pow(rangeProgress, 2) * 70; + return Math.min(30 + Math.pow(rangeProgress, 2) * 70, 99.9); } function parseProgress(msg) {