From 888e81de931a66a164c1b56b697192a83ac0980e Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Wed, 23 Aug 2017 07:55:34 +0800 Subject: [PATCH] add mempool reffresh time to mempool.html --- src/page.h | 3 ++- src/templates/mempool.html | 2 +- src/templates/search_results.html | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/page.h b/src/page.h index a506555..5a3b4b7 100644 --- a/src/page.h +++ b/src/page.h @@ -826,7 +826,8 @@ namespace xmreg // initalise page tempate map with basic info about mempool mstch::map context { {"mempool_size" , total_no_of_mempool_tx}, // total no of mempool txs - {"show_cache_times" , show_cache_times} + {"show_cache_times" , show_cache_times}, + {"mempool_refresh_time" , MempoolStatus::mempool_refresh_time} }; context.emplace("mempooltxs" , mstch::array()); diff --git a/src/templates/mempool.html b/src/templates/mempool.html index 7c8ca2b..74b5cb8 100644 --- a/src/templates/mempool.html +++ b/src/templates/mempool.html @@ -1,7 +1,7 @@

Memory pool

-

(no of txs: {{mempool_size}}, size: {{mempool_size_kB}} kB)

+

(no of txs: {{mempool_size}}; size: {{mempool_size_kB}} kB; refreshed every {{ mempool_refresh_time }} seconds)

diff --git a/src/templates/search_results.html b/src/templates/search_results.html index d8a6f64..be0bcff 100644 --- a/src/templates/search_results.html +++ b/src/templates/search_results.html @@ -3,7 +3,7 @@ {{#no_results}}

Nothing in the blockchain has been found that matches the search term :-(

-
Note: there might be 10 block delay between what can be searchable (e.g., key images)
+
Note: there might be some delay when newest txs become searchable
{{/no_results}} {{#to_many_results}}