Skip to content

Node.js based forum software built for the modern web

show megabyte values

barisusakli1bad2f79eecf
diff --git a/src/database/mongo/main.js b/src/database/mongo/main.js
index 2382acd28e..d9a1b4a9be 100644
--- a/src/database/mongo/main.js
+++ b/src/database/mongo/main.js
@@ -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;