From 36addd22057fcae747b5604029ad9fd57c6c7ac2 Mon Sep 17 00:00:00 2001 From: muxator Date: Tue, 19 Feb 2019 00:41:51 +0100 Subject: [PATCH] server.js: group together the loading of the stats system No functional changes, this is intended to simplify subsequent patches. --- src/node/server.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/node/server.js b/src/node/server.js index 9ccedfa60..1207dff96 100755 --- a/src/node/server.js +++ b/src/node/server.js @@ -23,12 +23,15 @@ var log4js = require('log4js') , async = require('async') - , stats = require('./stats') , NodeVersion = require('./utils/NodeVersion') ; log4js.replaceConsole(); +/* + * start up stats counting system + */ +var stats = require('./stats'); stats.gauge('memoryUsage', function() { return process.memoryUsage().rss })