mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2025-01-08 23:19:26 +00:00
feat: Status, add miners connected to Proxy column
This commit is contained in:
parent
61f67fff4f
commit
08108454ea
3 changed files with 8 additions and 0 deletions
|
@ -267,6 +267,10 @@ fn xmrig_proxy(
|
|||
"[Accepted: {}]\n[Rejected: {}]",
|
||||
api.accepted, api.rejected
|
||||
));
|
||||
ui.label(RichText::new("Miners Connected").underline().color(BONE))
|
||||
.on_hover_text(STATUS_PROXY_CONNECTIONS);
|
||||
ui.label(api.miners.to_string());
|
||||
|
||||
ui.label(RichText::new("Pool").underline().color(BONE))
|
||||
.on_hover_text(STATUS_XMRIG_PROXY_POOL);
|
||||
ui.label(api.node.to_string());
|
||||
|
|
|
@ -510,6 +510,7 @@ pub struct PubXmrigProxyApi {
|
|||
pub hashrate_1h: f32,
|
||||
pub hashrate_12h: f32,
|
||||
pub hashrate_24h: f32,
|
||||
pub miners: u16,
|
||||
pub node: String,
|
||||
}
|
||||
|
||||
|
@ -531,6 +532,7 @@ impl PubXmrigProxyApi {
|
|||
hashrate_1h: 0.0,
|
||||
hashrate_12h: 0.0,
|
||||
hashrate_24h: 0.0,
|
||||
miners: 0,
|
||||
node: UNKNOWN_DATA.to_string(),
|
||||
}
|
||||
}
|
||||
|
@ -604,6 +606,7 @@ impl PubXmrigProxyApi {
|
|||
hashrate_1h: private.hashrate.total[2],
|
||||
hashrate_12h: private.hashrate.total[3],
|
||||
hashrate_24h: private.hashrate.total[4],
|
||||
miners: private.miners.now,
|
||||
..std::mem::take(&mut *public)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -249,6 +249,7 @@ pub const STATUS_XMRIG_DIFFICULTY: &str = "The current difficulty of the job XMR
|
|||
pub const STATUS_XMRIG_SHARES: &str = "The amount of accepted and rejected shares";
|
||||
pub const STATUS_XMRIG_POOL: &str = "The pool XMRig is currently mining to";
|
||||
pub const STATUS_XMRIG_THREADS: &str = "The amount of threads XMRig is currently using";
|
||||
pub const STATUS_PROXY_CONNECTIONS: &str = "The total amount of miner connections on this Proxy";
|
||||
//--
|
||||
pub const STATUS_XVB_TIME_REMAIN: &str = "Minutes left before end of round";
|
||||
pub const STATUS_XVB_ROUND_TYPE: &str = "The current round type";
|
||||
|
|
Loading…
Reference in a new issue