From 9d7512d6e5d4ddec843c33e6ff799c0a880c7fdf Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Sat, 17 Aug 2024 13:45:18 +0000 Subject: [PATCH] web/remux: lower percentage bound --- web/src/routes/remux/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/routes/remux/+page.svelte b/web/src/routes/remux/+page.svelte index 2570f132..6c619df5 100644 --- a/web/src/routes/remux/+page.svelte +++ b/web/src/routes/remux/+page.svelte @@ -17,7 +17,7 @@ $: { if (totalDuration && processedDuration) { - const percentage = Math.min(100, (processedDuration / totalDuration) * 100).toFixed(2); + const percentage = Math.max(0, Math.min(100, (processedDuration / totalDuration) * 100)).toFixed(2); progress = `${percentage}%, ${speed}x`; } else if (processing) { progress = 'getting video metadata';