diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2014-02-23 06:18:02 +0400 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2014-02-23 06:18:02 +0400 |
commit | 9a59a604d0e3c358093a8b204e710080a13fbfaf (patch) | |
tree | cc8277d71f8e16f0b1ef20ec13b9bd1430c800a8 /lib/torrent.js | |
parent | 24d4c314a6d8e25d9e0e19e010bcf143fc2f135f (diff) |
progress
Diffstat (limited to 'lib/torrent.js')
-rw-r--r-- | lib/torrent.js | 6 |
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 |