From 2d0e62929ab0c7da3e1f4071676c4478bae67ffe Mon Sep 17 00:00:00 2001 From: Jethro Grassie Date: Sun, 12 May 2019 12:50:40 -0400 Subject: [PATCH] show time of last fetched template in the web ui --- src/pool.c | 2 +- src/webui-embed.html | 28 +++++++++++++++++++++------- src/webui.c | 4 +++- src/webui.h | 1 + 4 files changed, 26 insertions(+), 9 deletions(-) diff --git a/src/pool.c b/src/pool.c index 118bc54..35ce2e6 100644 --- a/src/pool.c +++ b/src/pool.c @@ -1342,7 +1342,7 @@ rpc_on_block_template(const char* data, rpc_callback_t *callback) json_object_put(root); return; } - + pool_stats.last_template_fetched = time(NULL); block_template_t *front = (block_template_t*) bstack_push(bst, NULL); response_to_block_template(result, front); pool_clients_send_job(); diff --git a/src/webui-embed.html b/src/webui-embed.html index 11e2870..8e0d6cf 100644 --- a/src/webui-embed.html +++ b/src/webui-embed.html @@ -35,6 +35,7 @@ Network height: Blocks found: Last block found: + Last template: Payment threshold: Pool fee: Pool port: @@ -53,20 +54,33 @@ https://github.com/jtgrassie/monero-pool