Skip to content

Commit

Permalink
fix: print external HR with 3 decimals max
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrix126 committed Nov 1, 2024
1 parent b943da8 commit 14a0da9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helper/xvb/algorithm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 14a0da9

Please sign in to comment.