Browse Source

minor ui tweaks

fix-133-memory-crash
Dan Janosik 7 years ago
parent
commit
a52eeab568
  1. 19
      views/node-status.pug

19
views/node-status.pug

@ -40,6 +40,7 @@ block content
tr tr
th(class="table-active properties-header") Blockchain Size th(class="table-active properties-header") Blockchain Size
td(class="monospace") #{utils.formatBytes(getblockchaininfo.size_on_disk)} td(class="monospace") #{utils.formatBytes(getblockchaininfo.size_on_disk)}
br
span(class="text-muted") (pruned: #{getblockchaininfo.pruned}) span(class="text-muted") (pruned: #{getblockchaininfo.pruned})
tr tr
th(class="table-active properties-header") Connections th(class="table-active properties-header") Connections
@ -47,19 +48,19 @@ block content
tr tr
th(class="table-active properties-header") Block Count th(class="table-active properties-header") Block Count
td(class="monospace") #{getblockchaininfo.blocks.toLocaleString()} td(class="monospace") #{getblockchaininfo.blocks.toLocaleString()}
span(class="text-muted") (header count: #{getblockchaininfo.headers.toLocaleString()}) br
span(class="text-muted") (headers: #{getblockchaininfo.headers.toLocaleString()})
tr tr
- var scales = [ {val:1000000000000000, name:"quadrillion"}, {val:1000000000000, name:"trillion"}, {val:1000000000, name:"billion"}, {val:1000000, name:"million"} ]; - var scales = [ {val:1000000000000000, name:"quadrillion"}, {val:1000000000000, name:"trillion"}, {val:1000000000, name:"billion"}, {val:1000000, name:"million"} ];
- var scaleDone = false; - var scaleDone = false;
th(class="table-active properties-header") Difficulty th(class="table-active properties-header") Difficulty
td(class="monospace") td(class="monospace")
span #{parseFloat(getblockchaininfo.difficulty).toLocaleString()} - var difficultyData = utils.formatLargeNumber(getblockchaininfo.difficulty, 3);
each item in scales
if (!scaleDone) span(title=parseFloat(getblockchaininfo.difficulty).toLocaleString(), data-toggle="tooltip")
- var fraction = Math.floor(getblockchaininfo.difficulty / item.val); span #{difficultyData[0]}
if (fraction >= 1) span x 10
- scaleDone = true; sup #{difficultyData[1].exponent}
span(class="text-muted") (#{fraction} #{item.name})
tr tr
th(class="table-active properties-header") Status th(class="table-active properties-header") Status
@ -83,7 +84,7 @@ block content
span Total Upload: #{utils.formatBytes(getnettotals.totalbytessent)} span Total Upload: #{utils.formatBytes(getnettotals.totalbytessent)}
span(class="text-muted") (avg #{utils.formatBytes(getnettotals.totalbytessent / uptimeSeconds)}/s) span(class="text-muted") (avg #{utils.formatBytes(getnettotals.totalbytessent / uptimeSeconds)}/s)
tr tr(class="border-bottom")
th(class="table-active properties-header") Warnings th(class="table-active properties-header") Warnings
td(class="monospace") td(class="monospace")
if (getblockchaininfo.warnings && getblockchaininfo.warnings.trim().length > 0) if (getblockchaininfo.warnings && getblockchaininfo.warnings.trim().length > 0)

Loading…
Cancel
Save