|
|
@ -20,8 +20,17 @@ if (true) |
|
|
|
- scaleDone = true; |
|
|
|
span(class="text-muted") (#{fraction} #{item.name}) |
|
|
|
tr |
|
|
|
th(class="table-active properties-header") Total Memory Usage |
|
|
|
td #{getmempoolinfo.usage.toLocaleString()} |
|
|
|
- var scales = [ {val:1000000000, name:"GB"}, {val:1000000, name:"MB"}, {val:1000, name:"kB"} ]; |
|
|
|
- var scaleDone = false; |
|
|
|
th(class="table-active properties-header") Size |
|
|
|
td |
|
|
|
span #{getmempoolinfo.usage.toLocaleString()} bytes |
|
|
|
each item in scales |
|
|
|
if (!scaleDone) |
|
|
|
- var fraction = Math.floor(getmempoolinfo.usage / item.val); |
|
|
|
if (fraction >= 1) |
|
|
|
- scaleDone = true; |
|
|
|
span(class="text-muted") (#{fraction} #{item.name}) |
|
|
|
tr |
|
|
|
th(class="table-active properties-header") Max Size |
|
|
|
td #{getmempoolinfo.maxmempool.toLocaleString()} |
|
|
|