diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2016-01-10 19:53:10 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2016-01-11 02:08:59 +0300 |
commit | 19a942d6c2215352a35bde3abc5bfed21d9e3fc2 (patch) | |
tree | a2e652f7f9524b10f8e72b3bc7bf92a6d79d4e5c /README.md | |
parent | 427f2d3b7b6e6d1bbb19681f7515acd80cc60d61 (diff) |
BREAKING: `downloadSpeed` and `uploadSpeed` are getters
torrent.downloadSpeed() -> torrent.downloadSpeed
torrent.uploadSpeed() -> torrent.uploadSpeed
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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('======'); }) |