Skip to content

Commit

Permalink
[minor] better outputting across multiple urls
Browse files Browse the repository at this point in the history
  • Loading branch information
3rd-Eden committed Apr 7, 2013
1 parent bbbe7bc commit 83b8481
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/thor
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Object.keys(cluster.workers).forEach(function each(id) {
});

// Add our worker to our round robin queue so we can balance all our requests
// across the different workers that we spawned
// across the different workers that we spawned.
robin.push(worker);
});

Expand All @@ -121,6 +121,7 @@ Object.keys(cluster.workers).forEach(function each(id) {
, '- Smash '+ (cli.amount || 'infinite') +' connections with the mighty Mjölnir.'
, ''
, 'The answers you seek shall be yours, once I claim what is mine.'
, ''
].forEach(function stdout(line) {
console.log(line);
});
Expand All @@ -136,7 +137,7 @@ async.forEach(cli.args, function forEach(url, done) {
var i = cli.amount
, completed = 0;

console.log('Connecting to %s\n', url);
console.log('Connecting to %s', url);

//
// Create a simple WebSocket connection generator.
Expand Down Expand Up @@ -165,6 +166,8 @@ async.forEach(cli.args, function forEach(url, done) {
metrics.established();
});

console.log('');

process.once('SIGINT', process.exit.bind(process, 0));
process.once('exit', function summary() {
metrics.stop().summary();
Expand Down

0 comments on commit 83b8481

Please sign in to comment.