if (false) pre code #{JSON.stringify(getinfo, null, 4)} if (true) table(class="table") tr th(class="table-active properties-header") Version td #{getinfo.version} tr th(class="table-active properties-header") Protocol Version td #{getinfo.protocolversion} tr th(class="table-active properties-header") Connections td #{getinfo.connections.toLocaleString()} tr th(class="table-active properties-header") Block Count td #{getinfo.blocks.toLocaleString()} tr th(class="table-active properties-header") Testnet? td #{getinfo.testnet} tr th(class="table-active properties-header") Errors td #{getinfo.errors} tr - var scales = [ {val:1000000000000000, name:"quadrillion"}, {val:1000000000000, name:"trillion"}, {val:1000000000, name:"billion"}, {val:1000000, name:"million"} ]; - var scaleDone = false; th(class="table-active properties-header") Difficulty td span #{getinfo.difficulty.toLocaleString()} each item in scales if (!scaleDone) - var fraction = Math.floor(getinfo.difficulty / item.val); if (fraction >= 1) - scaleDone = true; span(class="text-muted") (#{fraction} #{item.name})