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

adding bittorrent-peerid to README #63

Merged
merged 5 commits into from Jun 3, 2014
Prev

small improvements to verifying logic

  • Loading branch information
transitive-bullshit committed Jun 1, 2014
commit 98a2fa72065cb4eb3fbdc6ea5039de3da0dfee79
@@ -180,7 +180,9 @@ function onTorrent (torrent) {
console.log('DONE')
if (argv.list) return
if (!argv.quiet) {
clivas.line('torrent downloaded {green:successfully} from {bold:'+torrent.swarm.wires.length+'} {green:peers} in {bold:'+getRuntime()+'s}!')
var numActiveWires = torrent.swarm.wires.reduce(function (num, wire) { return num + (wire.downloaded > 0) }, 0)

clivas.line('torrent downloaded {green:successfully} from {bold:'+numActiveWires+'/'+torrent.swarm.wires.length+'} {green:peers} in {bold:'+getRuntime()+'s}!')
}
if (argv.remove) {
remove()
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.