From 49be232aaadebe7a0c48fe8405b0a9884b21dda0 Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Wed, 9 May 2012 10:19:42 -0700 Subject: [PATCH] fix comment to match, no need for commander versions --- collector.js | 5 ++--- receiver.js | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/collector.js b/collector.js index 9ea7a95..cad092f 100644 --- a/collector.js +++ b/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. */ @@ -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 ) diff --git a/receiver.js b/receiver.js index e07803b..6061da2 100644 --- a/receiver.js +++ b/receiver.js @@ -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' ) @@ -44,7 +43,6 @@ net.createServer(function( socket ) { for ( ci in bobj ) delete bobj[ci]; }); - //socket.pipe( socket ); }).listen( cli.file );