diff options
-rw-r--r-- | lib/torrent.js | 2 |
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 } |