mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
added mongo info function, change admin redis template to database template
This commit is contained in:
@@ -71,7 +71,15 @@
|
||||
}
|
||||
|
||||
module.info = function(callback) {
|
||||
throw new Error('not-implemented');
|
||||
db.stats({scale:1024}, function(err, stats) {
|
||||
|
||||
stats.avgObjSize = (stats.avgObjSize / 1024).toFixed(2);
|
||||
|
||||
stats.mongo = true;
|
||||
//remove this when andrew adds in undefined checking to templates
|
||||
stats.redis = false;
|
||||
callback(err, stats);
|
||||
});
|
||||
}
|
||||
|
||||
// key
|
||||
|
||||
Reference in New Issue
Block a user