mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
display avg object size in bytes
This commit is contained in:
@@ -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/>
|
||||
|
||||
Reference in New Issue
Block a user