diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-08-22 18:21:09 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-08-22 18:21:09 +0300 |
commit | 89fc47af48dda1f67abeb4385dd594a4ea547dc0 (patch) | |
tree | dbb73aa4501991a28f696db5c22032f2206d0f2b /bin | |
parent | b35b5b50cd63f9536bbfccb08ac852ce1fe7dccc (diff) |
cmd: torrent.parsedTorrent is gone
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cmd.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -566,9 +566,9 @@ function drawTorrent (torrent) { torrent.swarm.wires.every(function (wire) { var progress = '?' - if (torrent.parsedTorrent) { + if (torrent.length) { var bits = 0 - var piececount = Math.ceil(torrent.parsedTorrent.length / torrent.parsedTorrent.pieceLength) + var piececount = Math.ceil(torrent.length / torrent.pieceLength) for (var i = 0; i < piececount; i++) { if (wire.peerPieces.get(i)) { bits++ |