bring back median size of blocks on front page

This commit is contained in:
moneroexamples 2017-08-24 13:32:48 +08:00
parent 026e734ab0
commit cf54281ae2
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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">