From 299cff8596234422c97027ce580c05d236b021bc Mon Sep 17 00:00:00 2001 From: Cyrix126 <58007246+Cyrix126@users.noreply.github.com> Date: Tue, 12 Nov 2024 13:26:27 +0100 Subject: [PATCH] fix: count time on 0s when sending all to p2pool for one decision Also fix the wrong hover text saying time until switching to XvB where it should say time until next decision. --- src/helper/xvb/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helper/xvb/mod.rs b/src/helper/xvb/mod.rs index 11f7c55..c1bdc07 100644 --- a/src/helper/xvb/mod.rs +++ b/src/helper/xvb/mod.rs @@ -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