bring back median size of blocks on front page

master
moneroexamples 7 years ago
parent 026e734ab0
commit cf54281ae2

@ -679,6 +679,10 @@ namespace xmreg
} // while (i <= end_height)
// calculate median size of the blocks shown
double blk_size_median = xmreg::calc_median(blk_sizes.begin(), blk_sizes.end());
context["blk_size_median"] = fmt::format("{:0.2f}", blk_size_median);
// save computational times for disply in the frontend

@ -64,8 +64,7 @@
<h2 style="margin-bottom: 0px">Transactions in older blocks<!--(height: {{height}})--></h2>
{{/is_page_zero}}
<h4 style="font-size: 14px; margin-top: 0px">(Median size of these blocks: {{blk_size_median}} kB)</h4>
<div class="center">

Loading…
Cancel
Save