Browse files

Make monitor and analyzer module-local instead of implicitly global.

  • Loading branch information...
1 parent abee891 commit 940daa7604ad306e3e6d15bd3f5aa58648d66f4c @coderunr coderunr committed Jan 12, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 app.js
View
4 app.js
@@ -17,13 +17,13 @@ var Ping = require('./models/ping');
var mongoose = require('./bootstrap');
// monitor
-
+var m;
if (config.autoStartMonitor) {
m = monitor.createMonitor(config.monitor);
m.start();
}
-a = analyzer.createAnalyzer(config.analyzer);
+var a = analyzer.createAnalyzer(config.analyzer);
a.start();
// web front

0 comments on commit 940daa7

Please sign in to comment.