fix: count time on 0s when sending all to p2pool for one decision
Some checks failed
Lockbud / lockbud (push) Has been cancelled
Rust / fmt (push) Has been cancelled
Rust / test (macos-latest) (push) Has been cancelled
Rust / test (ubuntu-latest) (push) Has been cancelled
Rust / clippy (macos-latest) (push) Has been cancelled
Rust / clippy (ubuntu-latest) (push) Has been cancelled
Rust / check (macos-latest) (push) Has been cancelled
Rust / check (ubuntu-latest) (push) Has been cancelled
Rust / doc (macos-latest) (push) Has been cancelled
Rust / doc (ubuntu-latest) (push) Has been cancelled
Typo / typo (push) Has been cancelled

Also fix the wrong hover text saying time until switching to XvB where
it should say time until next decision.
This commit is contained in:
Cyrix126 2024-11-12 13:26:27 +01:00
parent 068b11afac
commit 675a97080c

View file

@ -853,7 +853,7 @@ fn update_indicator_algo(
{
let node = pub_api.lock().unwrap().current_node;
let msg_indicator = match node {
Some(XvbNode::P2pool) if time_donated > 0 => {
Some(XvbNode::P2pool) if time_donated > 0 && time_donated != XVB_TIME_ALGO => {
// algo is mining on p2pool but will switch to XvB after
// show time remaining on p2pool