Merge pull request #1716 from pR0Ps/master

Floor individual file percentages for display
This commit is contained in:
Feross Aboukhadijeh
2019-10-01 06:49:42 -07:00
committed by GitHub

View File

@@ -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