server.js: group together the loading of the stats system

No functional changes, this is intended to simplify subsequent patches.
pull/3558/head
muxator 2019-02-19 00:41:51 +01:00
parent b16b98f8ca
commit 36addd2205
1 changed files with 4 additions and 1 deletions

View File

@ -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
})