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/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 5536425..816d94e 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -538,32 +538,6 @@ function drawTorrent (torrent) {
clivas.line('{80:}')
linesRemaining -= 5
- if (argv.verbose) {
- var pieces = torrent.pieces
- for (var i = 0; i < pieces.length; i++) {
- var piece = pieces[i]
- if (piece.verified || (piece.blocksWritten === 0 && !piece.blocks[0])) continue
- var bar = ''
- for (var j = 0; j < piece.blocks.length; j++) {
- // switch (piece.blocks[j]) {
- // case Storage.BLOCK_BLANK:
- // bar += '{red:█}'
- // break
- // case Storage.BLOCK_RESERVED:
- // bar += '{blue:█}'
- // break
- // case Storage.BLOCK_WRITTEN:
- // bar += '{green:█}'
- // break
- // }
- }
- clivas.line('{4+cyan:' + i + '} ' + bar)
- linesRemaining -= 1
- }
- clivas.line('{80:}')
- linesRemaining -= 1
- }
-
torrent.swarm.wires.every(function (wire) {
var progress = '?'
if (torrent.length) {