diff --git a/src/database/mongo.js b/src/database/mongo.js index 5282024f6d..584992c5ae 100644 --- a/src/database/mongo.js +++ b/src/database/mongo.js @@ -209,7 +209,7 @@ stats.network = results.serverStatus.network; stats.raw = JSON.stringify(stats, null, 4); - stats.avgObjSize = (stats.avgObjSize / 1024).toFixed(2); + stats.avgObjSize = stats.avgObjSize.toFixed(2); stats.dataSize = (stats.dataSize / scale).toFixed(2); stats.storageSize = (stats.storageSize / scale).toFixed(2); stats.fileSize = stats.fileSize ? (stats.fileSize / scale).toFixed(2) : 0; diff --git a/src/views/admin/advanced/database.tpl b/src/views/admin/advanced/database.tpl index 4f928b1e52..4ebd277f55 100644 --- a/src/views/admin/advanced/database.tpl +++ b/src/views/admin/advanced/database.tpl @@ -11,7 +11,7 @@ Storage Engine {mongo.storageEngine}
Collections {mongo.collections}
Objects {mongo.objects}
- Avg. Object Size {mongo.avgObjSize} kb
+ Avg. Object Size {mongo.avgObjSize} b

Data Size {mongo.dataSize} mb
Storage Size {mongo.storageSize} mb