mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
added raw info
This commit is contained in:
@@ -24,6 +24,11 @@
|
|||||||
<span>Keyspace Hits</span> <span class="text-right">{keyspace_hits}</span><br/>
|
<span>Keyspace Hits</span> <span class="text-right">{keyspace_hits}</span><br/>
|
||||||
<span>Keyspace Misses</span> <span class="text-right">{keyspace_misses}</span><br/>
|
<span>Keyspace Misses</span> <span class="text-right">{keyspace_misses}</span><br/>
|
||||||
</div>
|
</div>
|
||||||
|
<hr />
|
||||||
|
<h3>Raw Info </h3>
|
||||||
|
<div class="highlight">
|
||||||
|
<pre>{raw}</pre>
|
||||||
|
</div>
|
||||||
<!-- ENDIF redis -->
|
<!-- ENDIF redis -->
|
||||||
|
|
||||||
<!-- IF mongo -->
|
<!-- IF mongo -->
|
||||||
@@ -39,4 +44,9 @@
|
|||||||
<span>Storage Size</span> <span class="text-right">{storageSize} kb</span><br/>
|
<span>Storage Size</span> <span class="text-right">{storageSize} kb</span><br/>
|
||||||
<span>File Size</span> <span class="text-right">{fileSize} kb</span><br/>
|
<span>File Size</span> <span class="text-right">{fileSize} kb</span><br/>
|
||||||
</div>
|
</div>
|
||||||
|
<hr />
|
||||||
|
<h3>Raw Info </h3>
|
||||||
|
<div class="highlight">
|
||||||
|
<pre>{raw}</pre>
|
||||||
|
</div>
|
||||||
<!-- ENDIF mongo -->
|
<!-- ENDIF mongo -->
|
||||||
|
|||||||
@@ -75,6 +75,8 @@
|
|||||||
|
|
||||||
stats.avgObjSize = (stats.avgObjSize / 1024).toFixed(2);
|
stats.avgObjSize = (stats.avgObjSize / 1024).toFixed(2);
|
||||||
|
|
||||||
|
stats.raw = JSON.stringify(stats, null, 4);
|
||||||
|
|
||||||
stats.mongo = true;
|
stats.mongo = true;
|
||||||
//remove this when andrew adds in undefined checking to templates
|
//remove this when andrew adds in undefined checking to templates
|
||||||
stats.redis = false;
|
stats.redis = false;
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
winston.warn('can\'t parse redis status variable, ignoring', i, data[i], err);
|
winston.warn('can\'t parse redis status variable, ignoring', i, data[i], err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
redisData.raw = JSON.stringify(redisData, null, 4);
|
||||||
redisData.redis = true;
|
redisData.redis = true;
|
||||||
//remove this when andrew adds in undefined checking to templates
|
//remove this when andrew adds in undefined checking to templates
|
||||||
redisData.mongo = false;
|
redisData.mongo = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user