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>2016-01-10 19:53:10 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-01-11 02:08:59 +0300
commit19a942d6c2215352a35bde3abc5bfed21d9e3fc2 (patch)
treea2e652f7f9524b10f8e72b3bc7bf92a6d79d4e5c /README.md
parent427f2d3b7b6e6d1bbb19681f7515acd80cc60d61 (diff)
BREAKING: `downloadSpeed` and `uploadSpeed` are getters
torrent.downloadSpeed() -> torrent.downloadSpeed torrent.uploadSpeed() -> torrent.uploadSpeed
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 808cfa3..b0b1731 100644
--- a/README.md
+++ b/README.md
@@ -369,11 +369,11 @@ Get the total progress from 0 to 1.
Get the torrent ratio (seeded/downloaded).
-#### `torrent.downloadSpeed()`
+#### `torrent.downloadSpeed`
Returns the download speed.
-#### `torrent.uploadSpeed()`
+#### `torrent.uploadSpeed`
Returns the current upload speed.
@@ -471,7 +471,7 @@ Emitted every time a new chunk of data arrives, it's useful for reporting the cu
torrent.on('download', function(chunkSize){
console.log('chunk size: ' + chunkSize);
console.log('total downloaded: ' + torrent.downloaded);
- console.log('download speed: ' + torrent.downloadSpeed());
+ console.log('download speed: ' + torrent.downloadSpeed);
console.log('progress: ' + torrent.progress);
console.log('======');
})