Skip to content

Commit

Permalink
feat: algo better output of calculation in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrix126 committed Nov 1, 2024
1 parent cc7301d commit 1ded279
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helper/xvb/algorithm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ impl<'a> Algorithm<'a> {
stats,
};
// external XvB HR is taken into account with get_target_donation_hashrate so the needed time is calculating how much time is needed from local sparable HR only
new_instance.stats.target_donation_hashrate = new_instance.get_target_donation_hashrate();
new_instance.stats.target_donation_hashrate =
new_instance.get_target_donation_hashrate().max(0.0);
new_instance.stats.needed_time_xvb = Self::get_needed_time_xvb(
new_instance.stats.target_donation_hashrate,
new_instance.stats.hashrate_xmrig,
Expand Down

0 comments on commit 1ded279

Please sign in to comment.