Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a console error

  • Loading branch information...
commit a002e1f5d977045bbae5b6ce32d19cd755495392 1 parent 100502d
Martin Rusev authored
Showing with 6 additions and 21 deletions.
  1. +0 −3  README.md
  2. +4 −16 benchmark.js
  3. +2 −2 lib/amon.js
View
3  README.md
@@ -48,6 +48,3 @@ your project with <span class="code">node server.js</span>, add them to <span cl
If you find a bug in the node client, you can use the the github issues page to report it:
[https://github.com/martinrusev/amon-node/issue](https://github.com/martinrusev/amon-node/issue)
-## Meta
-
-The Node.js client is hosted on [Github](https://github.com/martinrusev/amon-node)
View
20 benchmark.js
@@ -1,10 +1,11 @@
var amon = require('./lib/amon.js').Amon;
-amon.port = 2465
+amon.port = 2464
+amon.secret_key = "WxCWoYEHKs0LVVGSN1sUPhPdZXCkGjFM0YtqhIQPIZo"
var start = new Date().getTime();
-for(var i = 0; i < 10000; i++) {
- amon.log('node.js log message')
+for(var i = 0; i < 100; i++) {
+ amon.log('node.js log message', ['test'])
}
var stop = new Date().getTime();
var executionTime = stop - start;
@@ -12,17 +13,4 @@ var executionTime = stop - start;
console.log('HTTP logging:'+executionTime+' miliseconds')
-amon.protocol = 'zeromq'
-amon.port = 5464
-amon.host = '127.0.0.1'
-
-var start = new Date().getTime();
-for(var i = 0; i < 10000; i++) {
- amon.log('node.js log message')
-}
-var stop = new Date().getTime();
-var executionTime = stop - start;
-
-console.log('ZeroMQ logging:'+executionTime+' miliseconds')
-
View
4 lib/amon.js
@@ -1,7 +1,7 @@
var http = require('http');
var Amon = {
- VERSION: '0.5.0',
+ VERSION: '0.5.1',
host: "127.0.0.1",
port: 2464,
secret_key: false,
@@ -85,7 +85,7 @@ var Amon = {
request.end();
request.on('error', function (error) {
- console.log(e.message);
+ console.log(error.message);
});
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.