mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-11-16 15:27:46 +00:00
feat: algo better output of calculation in logs
Some checks are pending
CI / ci (macos-12) (push) Waiting to run
CI / ci (ubuntu-latest) (push) Waiting to run
Lockbud / lockbud (push) Waiting to run
Rust / fmt (push) Waiting to run
Rust / test (macos-latest) (push) Waiting to run
Rust / test (ubuntu-latest) (push) Waiting to run
Rust / typo (push) Waiting to run
Rust / clippy (macos-latest) (push) Waiting to run
Rust / clippy (ubuntu-latest) (push) Waiting to run
Rust / check (macos-latest) (push) Waiting to run
Rust / check (ubuntu-latest) (push) Waiting to run
Rust / doc (macos-latest) (push) Waiting to run
Rust / doc (ubuntu-latest) (push) Waiting to run
Typo / typo (push) Waiting to run
Some checks are pending
CI / ci (macos-12) (push) Waiting to run
CI / ci (ubuntu-latest) (push) Waiting to run
Lockbud / lockbud (push) Waiting to run
Rust / fmt (push) Waiting to run
Rust / test (macos-latest) (push) Waiting to run
Rust / test (ubuntu-latest) (push) Waiting to run
Rust / typo (push) Waiting to run
Rust / clippy (macos-latest) (push) Waiting to run
Rust / clippy (ubuntu-latest) (push) Waiting to run
Rust / check (macos-latest) (push) Waiting to run
Rust / check (ubuntu-latest) (push) Waiting to run
Rust / doc (macos-latest) (push) Waiting to run
Rust / doc (ubuntu-latest) (push) Waiting to run
Typo / typo (push) Waiting to run
This commit is contained in:
parent
cc7301d9c3
commit
1ded27995c
1 changed files with 2 additions and 1 deletions
|
@ -197,7 +197,8 @@ impl<'a> Algorithm<'a> {
|
||||||
stats,
|
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
|
// 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.needed_time_xvb = Self::get_needed_time_xvb(
|
||||||
new_instance.stats.target_donation_hashrate,
|
new_instance.stats.target_donation_hashrate,
|
||||||
new_instance.stats.hashrate_xmrig,
|
new_instance.stats.hashrate_xmrig,
|
||||||
|
|
Loading…
Reference in a new issue