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:
-rw-r--r--lib/torrent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index 45a4f95..4ee7a80 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -163,7 +163,7 @@ class Torrent extends EventEmitter {
get progress () { return this.length ? this.downloaded / this.length : 0 }
- get ratio () { return this.uploaded / (this.received || 1) }
+ get ratio () { return this.uploaded / (this.received || this.length) }
get numPeers () { return this.wires.length }