Skip to content

Commit

Permalink
fix comment to match, no need for commander versions
Browse files Browse the repository at this point in the history
  • Loading branch information
trevnorris committed May 9, 2012
1 parent c575773 commit 49be232
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions collector.js
@@ -1,7 +1,7 @@
/* Aggregate Collector
* Connects to each socket file created by receiver.js and aggregates data sent out
*
* Broadcast data will always end with a null character (\u0000) so anything listening
* Broadcast data will always end with a new line character, so anything listening
* for data will know when it has reached the end of a transmission.
*/

Expand All @@ -22,8 +22,7 @@ var http = require( 'http' ),
gtime = 0,
ptime;

cli.version( '0.1.0' )
.option( '-f, --dir [dir]', 'Directory containing the receiver.js socket files', String, './sockets' )
cli.option( '-f, --dir [dir]', 'Directory containing the receiver.js socket files', String, './sockets' )
.option( '-m, --multi', 'Set if this is a collector of collections' )
.option( '-p, --port [port]', 'Port or path to broadcast aggregated data', 7331 )
.option( '-s, --scan [numb]', 'Time to rescan socket dir for new socket files', Number, 30000 )
Expand Down
4 changes: 1 addition & 3 deletions receiver.js
Expand Up @@ -21,8 +21,7 @@ var http = require( 'http' ),

require( './utils' );

cli.version( '0.1.0' )
.option( '-f, --file [file]', 'Location to write the socket file', 'sockets/receiver.sock' )
cli.option( '-f, --file [file]', 'Location to write the socket file', 'sockets/receiver.sock' )
.option( '-p, --port [port]', 'Port or path for http server to run on', 7331 )
.option( '-i, --intv [numb]', 'Time interval for data aggregation', 1000 )
.option( '-d, --debug', 'Enable debugging' )
Expand All @@ -44,7 +43,6 @@ net.createServer(function( socket ) {
for ( ci in bobj )
delete bobj[ci];
});
//socket.pipe( socket );
}).listen( cli.file );


Expand Down

0 comments on commit 49be232

Please sign in to comment.