fix: if XvB target is 0H/s and average 24H is 0H/s, HR is sent to XvB

This commit is contained in:
Cyrix126 2025-01-03 15:59:16 +01:00
parent 46bb518f00
commit ddd8f404af

View file

@ -256,7 +256,7 @@ impl<'a> Algorithm<'a> {
}
// add external to target to have the real total target
let is_criteria_fulfilled = self.stats.xvb_24h_avg
> self.stats.target_donation_hashrate + self.stats.xvb_external_hashrate;
>= self.stats.target_donation_hashrate + self.stats.xvb_external_hashrate;
info!(
"Algorithm | xvb_24h_avg({}) > target_donation_hashrate({}) : {}",
self.stats.xvb_24h_avg,