diff --git a/src/app/panels/middle/status/processes.rs b/src/app/panels/middle/status/processes.rs index ca87111..35649df 100644 --- a/src/app/panels/middle/status/processes.rs +++ b/src/app/panels/middle/status/processes.rs @@ -160,6 +160,15 @@ fn p2pool( ) .on_hover_text(STATUS_P2POOL_UPTIME); ui.add_sized([width, height], Label::new(format!("{}", api.uptime))); + ui.add_sized( + [width, height], + Label::new(RichText::new("Current Shares").underline().color(BONE)), + ) + .on_hover_text(STATUS_P2POOL_CURRENT_SHARES); + ui.add_sized( + [width, height], + Label::new(api.sidechain_shares.to_string()), + ); ui.add_sized( [width, height], Label::new(RichText::new("Shares Found").underline().color(BONE)), diff --git a/src/utils/constants.rs b/src/utils/constants.rs index 280ab6f..3ab64ce 100644 --- a/src/utils/constants.rs +++ b/src/utils/constants.rs @@ -176,6 +176,8 @@ pub const STATUS_P2POOL_PAYOUTS: &str = "The total amount of payouts receive pub const STATUS_P2POOL_XMR: &str = "The total amount of XMR mined in this instance of P2Pool and an extrapolated estimate of how many you will mine in the future. Warning: these stats will be quite inaccurate if your P2Pool hasn't been running for a long time!"; pub const STATUS_P2POOL_HASHRATE: &str = "The total amount of hashrate your P2Pool has pointed at it in 15 minute, 1 hour, and 24 hour averages"; pub const STATUS_P2POOL_SHARES: &str = "The total amount of shares found on P2Pool"; +pub const STATUS_P2POOL_CURRENT_SHARES: &str = + "Current shares valid in the PPLNS Window for your address"; pub const STATUS_P2POOL_EFFORT: &str = "The average amount of effort needed to find a share, and the current effort"; pub const STATUS_P2POOL_CONNECTIONS: &str = "The total amount of miner connections on this P2Pool";