Fixed incorrect time shown when downloading

This commit is contained in:
Alex Kim
2024-11-04 00:15:57 +11:00
parent 4eb7d0f151
commit 272b8b914f

View File

@@ -95,7 +95,8 @@ const DownloadCard = ({ process, ...props }: DownloadCardProps) => {
const length = p?.item?.RunTimeTicks || 0;
const timeLeft = (length - length * (p.progress / 100)) / p.speed;
return formatTimeString(timeLeft, true);
console.log("TIME LEFT:", timeLeft);
return formatTimeString(timeLeft, "tick");
};
const base64Image = useMemo(() => {