display avg object size in bytes

v1.18.x
barisusakli 9 years ago
parent ac77f78d6b
commit 7185463d81

@ -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;

@ -11,7 +11,7 @@
<span>Storage Engine</span> <span class="text-right">{mongo.storageEngine}</span><br/>
<span>Collections</span> <span class="text-right formatted-number">{mongo.collections}</span><br/>
<span>Objects</span> <span class="text-right formatted-number">{mongo.objects}</span><br/>
<span>Avg. Object Size</span> <span class="text-right">{mongo.avgObjSize} kb</span><br/>
<span>Avg. Object Size</span> <span class="text-right">{mongo.avgObjSize} b</span><br/>
<hr/>
<span>Data Size</span> <span class="text-right">{mongo.dataSize} mb</span><br/>
<span>Storage Size</span> <span class="text-right">{mongo.storageSize} mb</span><br/>

Loading…
Cancel
Save