diff options
author | Astro <astro@spaceboyz.net> | 2014-11-22 04:39:09 +0300 |
---|---|---|
committer | Astro <astro@spaceboyz.net> | 2014-11-22 04:39:09 +0300 |
commit | 37b7251657acd3cee57ff36ad660c70a0ccfa707 (patch) | |
tree | eec82d43487d3e4d7cdd8997d33094b2a2f65142 /bin | |
parent | 3a3d661499e79490b906cfe44ad0bee7c3d07afd (diff) |
display requests per wire
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cmd.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -386,10 +386,14 @@ function onReady () { wires.every(function (wire) { var tags = [] if (wire.peerChoking) tags.push('choked') + var reqStats = wire.requests.map(function(req) { + return req.piece; + }) clivas.line( '{25+magenta:' + wire.remoteAddress + '} {10:'+bytes(wire.downloaded)+'} ' + '{10+cyan:' + bytes(wire.downloadSpeed()) + '/s} ' + - '{15+grey:' + tags.join(', ') + '}' + '{15+grey:' + tags.join(', ') + '}' + + '{15+cyan:' + reqStats.join(' ') + '}' ) peerslisted++ return linesremaining - peerslisted > 4 |