From 0ebabbecf7b7dc2c03f9694e0539a44dd0442127 Mon Sep 17 00:00:00 2001
From: Cyrix126 <58007246+Cyrix126@users.noreply.github.com>
Date: Fri, 1 Nov 2024 17:00:13 +0100
Subject: [PATCH] fix: print external HR with 3 decimals max

---
 src/helper/xvb/algorithm.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/helper/xvb/algorithm.rs b/src/helper/xvb/algorithm.rs
index ef756af..148f6a7 100644
--- a/src/helper/xvb/algorithm.rs
+++ b/src/helper/xvb/algorithm.rs
@@ -598,7 +598,7 @@ impl<'a> Algorithm<'a> {
             output_console(
                 &mut self.gui_api_xvb.lock().unwrap().output,
                 &format!(
-                    "estimated external HR on XvB: {}kH/s",
+                    "estimated external HR on XvB: {:.3}kH/s",
                     external_xvb_hr / 1000.0
                 ),
                 crate::helper::ProcessName::Xvb,
@@ -609,7 +609,7 @@ impl<'a> Algorithm<'a> {
             output_console(
                 &mut self.gui_api_xvb.lock().unwrap().output,
                 &format!(
-                    "estimated external HR on P2pool: {}kH/s",
+                    "estimated external HR on P2pool: {:.3}kH/s",
                     external_p2pool_hr / 1000.0
                 ),
                 crate::helper::ProcessName::Xvb,