Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-08-22 18:21:09 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-08-22 18:21:09 +0300
commit89fc47af48dda1f67abeb4385dd594a4ea547dc0 (patch)
treedbb73aa4501991a28f696db5c22032f2206d0f2b /bin
parentb35b5b50cd63f9536bbfccb08ac852ce1fe7dccc (diff)
cmd: torrent.parsedTorrent is gone
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 2ca529d..19fbab1 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -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++