mirror of
https://github.com/marcopiovanello/yt-dlp-web-ui.git
synced 2026-07-25 06:54:30 +00:00
fixed cumulative download bug
This commit is contained in:
@@ -17,7 +17,7 @@ const Downloads: React.FC = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setTotalDownloadSpeed(
|
setTotalDownloadSpeed(
|
||||||
downloads.map(d => d.progress.speed).reduce((curr, next) => curr + next)
|
downloads.map(d => d.progress.speed).reduce((curr, next) => curr + next, 0)
|
||||||
)
|
)
|
||||||
}, [downloads])
|
}, [downloads])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user