fix mistake

This commit is contained in:
Feross Aboukhadijeh
2016-03-05 21:14:17 -08:00
parent 62a91e433a
commit 1a7b69a19d

View File

@@ -48,7 +48,7 @@ function renderTorrent (torrent, dispatch) {
function renderTorrentMetadata (torrent) {
var progress = Math.floor(100 * torrent.progress)
var downloaded = prettyBytes(torrent.downloaded)
var total = prettyBytes(torrent.ready ? torrent.length : 0)
var total = prettyBytes(torrent.length || 0)
if (downloaded !== total) downloaded += ` / ${total}`