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>2016-01-10 18:26:25 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-01-11 02:08:59 +0300
commit6140c79352c964b20fef6e1b8bf080efa14427e7 (patch)
treecb1ea4873f637f4704d418566e78e0f33edb5e1e /bin
parent5a47595f10c468b6a552da28fbe7d565804e3e8c (diff)
eliminate `torrent.swarm` usage
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 660a994..aae3402 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -270,9 +270,11 @@ function runDownload (torrentId) {
torrent.on('infoHash', function () {
function updateMetadata () {
- var numPeers = torrent.swarm.numPeers
clivas.clear()
- clivas.line('{green:fetching torrent metadata from} {bold:%s} {green:peers}', numPeers)
+ clivas.line(
+ '{green:fetching torrent metadata from} {bold:%s} {green:peers}',
+ torrent.numPeers
+ )
}
if (!argv.quiet) {