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
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-08-24 00:40:24 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-08-24 00:40:24 +0300
commitadc1c80c4bde9fbeb3103a60615e251ada1f6934 (patch)
tree979cfcc49c1215ae812bcea9f26ed150d672c7cf
parent37c0a65ccda91e2e2d24bc484b04a7d63df848d7 (diff)
cmd: use new `torrent.downloaded` property
-rwxr-xr-xbin/cmd.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 19fbab1..5536425 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -523,9 +523,9 @@ function drawTorrent (torrent) {
}
clivas.line(
'{green:speed: }{bold:' + prettyBytes(speed) + '/s} ' +
- '{green:downloaded:} {bold:' + prettyBytes(torrent.swarm.downloaded) + '}' +
+ '{green:downloaded:} {bold:' + prettyBytes(torrent.downloaded) + '}' +
'/{bold:' + prettyBytes(torrent.length) + '} ' +
- '{green:uploaded:} {bold:' + prettyBytes(torrent.swarm.uploaded) + '} ' +
+ '{green:uploaded:} {bold:' + prettyBytes(torrent.uploaded) + '} ' +
'{green:peers:} {bold:' + unchoked.length + '/' + torrent.swarm.wires.length + '} ' +
'{green:hotswaps:} {bold:' + hotswaps + '}'
)