mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-11-16 15:27:46 +00:00
feat: fix overflow time left
Some checks are pending
CI / ci (macos-latest) (push) Waiting to run
CI / ci (ubuntu-latest) (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-latest) (push) Waiting to run
CI / ci (ubuntu-latest) (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
cc037096ee
commit
d706dec3fc
1 changed files with 4 additions and 2 deletions
|
@ -822,8 +822,10 @@ fn update_indicator_algo(
|
||||||
// algo is mining on p2pool but will switch to XvB after
|
// algo is mining on p2pool but will switch to XvB after
|
||||||
// show time remaining on p2pool
|
// show time remaining on p2pool
|
||||||
lock!(pub_api).stats_priv.time_switch_node = XVB_TIME_ALGO
|
lock!(pub_api).stats_priv.time_switch_node = XVB_TIME_ALGO
|
||||||
- last_algorithm.lock().unwrap().elapsed().as_secs() as u32
|
.checked_sub(last_algorithm.lock().unwrap().elapsed().as_secs() as u32)
|
||||||
- time_donated;
|
.unwrap_or_default()
|
||||||
|
.checked_sub(time_donated)
|
||||||
|
.unwrap_or_default();
|
||||||
"time until switch to mining on XvB".to_string()
|
"time until switch to mining on XvB".to_string()
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
|
Loading…
Reference in a new issue