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:
Diffstat (limited to 'lib')
-rw-r--r--lib/rarity-map.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rarity-map.js b/lib/rarity-map.js
index bc69921..7630734 100644
--- a/lib/rarity-map.js
+++ b/lib/rarity-map.js
@@ -7,7 +7,7 @@ class RarityMap {
constructor (torrent) {
this._torrent = torrent
this._numPieces = torrent.pieces.length
- this._pieces = new Array(this._numPieces).fill(0)
+ this._pieces = new Array(this._numPieces)
this._onWire = wire => {
this.recalculate()