mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
server.js: group together the loading of the stats system
No functional changes, this is intended to simplify subsequent patches.
This commit is contained in:
parent
b16b98f8ca
commit
36addd2205
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue