diff --git a/frontend/js/components/torrents/list/progress.js b/frontend/js/components/torrents/list/progress.js index 02f7cf8..0f833a3 100644 --- a/frontend/js/components/torrents/list/progress.js +++ b/frontend/js/components/torrents/list/progress.js @@ -16,8 +16,11 @@ export const Progress = ({ torrent }) => { } // Pretty sizes - const downloadedSize = prettySize(torrent.status.downloaded_size); const totalSize = prettySize(torrent.status.total_size); + const downloadedSize = + torrent.status.downloaded_size >= torrent.status.total_size + ? totalSize + : prettySize(torrent.status.downloaded_size); const downloadRate = prettySize(torrent.status.download_rate) + "/s"; return (