From 8ee27b8ef45aa3f3d8c80cb2a4072ab7062dc22c Mon Sep 17 00:00:00 2001 From: Carey Metcalfe Date: Thu, 26 Sep 2019 20:49:17 -0400 Subject: [PATCH] Floor individual file percentages for display Fixes #1713 --- src/renderer/pages/torrent-list-page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/pages/torrent-list-page.js b/src/renderer/pages/torrent-list-page.js index 5c4123ca..4e8ed5f4 100644 --- a/src/renderer/pages/torrent-list-page.js +++ b/src/renderer/pages/torrent-list-page.js @@ -316,7 +316,7 @@ module.exports = class TorrentList extends React.Component { torrentSummary.progress.files[index]) { const fileProg = torrentSummary.progress.files[index] isDone = fileProg.numPiecesPresent === fileProg.numPieces - progress = Math.round(100 * fileProg.numPiecesPresent / fileProg.numPieces) + '%' + progress = Math.floor(100 * fileProg.numPiecesPresent / fileProg.numPieces) + '%' } // Second, for media files where we saved our position, show how far we got