mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2025-01-03 12:39:35 +00:00
feat: show current shares in p2pool Tab submenu process
This commit is contained in:
parent
aee777d160
commit
e528f7d809
2 changed files with 11 additions and 0 deletions
|
@ -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)),
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue