Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output more details #188

Merged
merged 4 commits into from Nov 25, 2014
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

display requests per wire

  • Loading branch information
astro committed Nov 22, 2014
commit 37b7251657acd3cee57ff36ad660c70a0ccfa707
@@ -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
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.