mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
show megabyte values
This commit is contained in:
@@ -56,6 +56,10 @@ module.exports = function(db, module) {
|
||||
}
|
||||
|
||||
stats.avgObjSize = (stats.avgObjSize / 1024).toFixed(2);
|
||||
stats.dataSize = (stats.dataSize / 1024).toFixed(2);
|
||||
stats.storageSize = (stats.storageSize / 1024).toFixed(2);
|
||||
stats.fileSize = (stats.fileSize / 1024).toFixed(2);
|
||||
stats.indexSize = (stats.indexSize / 1024).toFixed(2);
|
||||
stats.raw = JSON.stringify(stats, null, 4);
|
||||
stats.mongo = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user