From 255c183c10d3bf7bf59e180fb8ffa9be80a8f32e Mon Sep 17 00:00:00 2001 From: Louis-Marie Baer Date: Mon, 18 Mar 2024 13:28:44 +0100 Subject: [PATCH] fix: add better output if no share and fix printing European Node --- src/helper/xvb.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/helper/xvb.rs b/src/helper/xvb.rs index 4c9bbf2..6a46c3c 100644 --- a/src/helper/xvb.rs +++ b/src/helper/xvb.rs @@ -516,6 +516,13 @@ impl Helper { .await }); } + } else { + if let Err(e) = writeln!( + lock!(gui_api).output, + "No share in the current PPLNS Window !", + ) { + error!("XvB Watchdog | GUI status write failed: {}", e); + } } } // instant saved for next check @@ -742,7 +749,7 @@ pub enum XvbNode { #[display(fmt = "XvB North America Node")] NorthAmerica, #[default] - #[display(fmt = "XvB North European Node")] + #[display(fmt = "XvB European Node")] Europe, #[display(fmt = "Local P2pool")] P2pool,