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>2014-02-23 06:18:02 +0400
committerFeross Aboukhadijeh <feross@feross.org>2014-02-23 06:18:02 +0400
commit9a59a604d0e3c358093a8b204e710080a13fbfaf (patch)
treecc8277d71f8e16f0b1ef20ec13b9bd1430c800a8 /lib/torrent.js
parent24d4c314a6d8e25d9e0e19e010bcf143fc2f135f (diff)
progress
Diffstat (limited to 'lib/torrent.js')
-rw-r--r--lib/torrent.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 5710c52..cea4ac2 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -178,6 +178,12 @@ Object.defineProperty(Torrent.prototype, 'numPeers', {
}
})
+Object.defineProperty(Torrent.prototype, 'progress', {
+ get: function () {
+ return 0.7 // TODO
+ }
+})
+
/**
* Add a peer to the swarm
* @param {string} addr