Commit c5e9269118419c523a1d6e80afafa40688314540

Authored by Adhidarma Hadiwinoto
1 parent d3065414f2
Exists in master

runtime matrix

Showing 2 changed files with 6 additions and 0 deletions Side-by-side Diff

control-panel/lib/router-main.js
... ... @@ -39,6 +39,7 @@ function pageRuntime(req, res, next) {
39 39 req.app.locals.cp_views_dir + '/runtime.html',
40 40 {
41 41 uptime: numeral(process.uptime()).format(),
  42 + matrix: JSON.stringify(matrix, null, 4),
42 43 memory_usage: JSON.stringify(process.memoryUsage(), null, 4),
43 44 os_info: JSON.stringify({
44 45 uptime: os.uptime(),
control-panel/views/runtime.html
... ... @@ -8,6 +8,11 @@
8 8 </div>
9 9 </div>
10 10  
  11 +{% if matrix %}
  12 +<h2 id="matrix">The Matrix</h2>
  13 +<pre>{{ matrix }}</pre>
  14 +{% endif %}
  15 +
11 16 <h2 id="memory_usage">Pemakaian Memori</h2>
12 17 <pre>{{ memory_usage }}</pre>
13 18