mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-03-10 11:36:18 +00:00
Fixed incorrect time shown when downloading
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user