From 572d2251d751e348ddac3a4f531376d49bea83d1 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Wed, 5 Apr 2023 13:47:51 +0200 Subject: [PATCH] HTML: added PPLNS window duration --- docs/html/index.html | 7 ++++++- docs/html/mini/index.html | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/html/index.html b/docs/html/index.html index 40c3a58..82db07c 100644 --- a/docs/html/index.html +++ b/docs/html/index.html @@ -85,7 +85,10 @@ async function load_data() { let network_stats = JSON.parse(await network_stats_req.text()); let pool_hashrate = pool_stats.pool_statistics.hashRate / 1e6; + let pplns_duration = pool_stats.pool_statistics.pplnsWeight / pool_stats.pool_statistics.hashRate; + document.getElementById("pool_hashrate").innerHTML = pool_hashrate.toFixed(3) + ' MH/s'; + document.getElementById("pplns_duration").innerHTML = elapsedTimeStr(0, pplns_duration, 0) + ' ' + Math.floor(pplns_duration % 60) + 's'; document.getElementById("pool_miners").innerHTML = pool_stats.pool_statistics.miners; let ts = Math.floor(Date.now() / 1000); @@ -184,7 +187,8 @@ function toggle_menu(name) { -
P2Pool
Decentralized Monero mining pool
+
P2Pool
Decentralized Monero mining pool
+P2Pool network upgrade (aka hardfork) on March 18th, 2023.
Update to P2Pool to the latest version

@@ -198,6 +202,7 @@ function toggle_menu(name) { + diff --git a/docs/html/mini/index.html b/docs/html/mini/index.html index b87b26f..d1c1712 100644 --- a/docs/html/mini/index.html +++ b/docs/html/mini/index.html @@ -85,7 +85,10 @@ async function load_data() { let network_stats = JSON.parse(await network_stats_req.text()); let pool_hashrate = pool_stats.pool_statistics.hashRate / 1e6; + let pplns_duration = pool_stats.pool_statistics.pplnsWeight / pool_stats.pool_statistics.hashRate; + document.getElementById("pool_hashrate").innerHTML = pool_hashrate.toFixed(3) + ' MH/s'; + document.getElementById("pplns_duration").innerHTML = elapsedTimeStr(0, pplns_duration, 0) + ' ' + Math.floor(pplns_duration % 60) + 's'; document.getElementById("pool_miners").innerHTML = pool_stats.pool_statistics.miners; let ts = Math.floor(Date.now() / 1000); @@ -184,7 +187,8 @@ function toggle_menu(name) { -
P2Pool mini
Decentralized Monero mining pool
+
P2Pool mini
Decentralized Monero mining pool
+P2Pool network upgrade (aka hardfork) on March 18th, 2023.
Update to P2Pool to the latest version

@@ -198,6 +202,7 @@ function toggle_menu(name) { +