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/lib
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-12-28 14:34:31 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-12-28 14:34:36 +0300
commitcdaeb31826dc09e3705edf401387da31937cdb7e (patch)
treeb497f85d36c2aae31a0cef1f25723588c58b8deb /lib
parented9d59f0193fc0421a3b37cbb90510164a5fd044 (diff)
add todos
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 00415f3..3d0ba16 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -167,10 +167,12 @@ Object.defineProperty(Torrent.prototype, 'torrentFileURL', {
}
})
+// TODO: Make this into a property
Torrent.prototype.downloadSpeed = function () {
return this.swarm ? this.swarm.downloadSpeed() : 0
}
+// TODO: Make this into a property
Torrent.prototype.uploadSpeed = function () {
return this.swarm ? this.swarm.uploadSpeed() : 0
}