From f98bee95c4ff4d86ca0907512040205b54daf6f5 Mon Sep 17 00:00:00 2001 From: iHeyTang Date: Sun, 28 Sep 2025 22:22:02 +0800 Subject: [PATCH] fix: correct estimated time calculation for video tasks in GeneratingComponent --- src/pages/result/components/GeneratingComponent.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/result/components/GeneratingComponent.tsx b/src/pages/result/components/GeneratingComponent.tsx index 474704a..32eec6a 100644 --- a/src/pages/result/components/GeneratingComponent.tsx +++ b/src/pages/result/components/GeneratingComponent.tsx @@ -22,7 +22,7 @@ const GeneratingComponent: React.FC = ({ task }) => { // Determine estimated time based on task type const isVideo = task.taskType === 'video' || task.outputType === 'video' || task.type === 'video'; - const estimatedTime = isVideo ? 2.5 : 1; // Video 2.5 minutes, image 1 minute + const estimatedTime = isVideo ? 15 : 15; // Video 2.5 minutes, image 1 minute // Calculate progress percentage, maximum 95% const calculatedProgress = Math.min((elapsedMinutes / estimatedTime) * 100, 95);