Skip to content

best way to save what you love

web/remux: lower percentage bound

dumbmoron9d7512d6e5d4
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';