fix: constraint needed time XvB
Some checks are pending
Audit / audit (push) Waiting to run
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:
Cyrix126 2024-10-30 20:20:56 +01:00
parent 173aadd2dd
commit 517c5922c5

View file

@ -581,6 +581,6 @@ impl<'a> Algorithm<'a> {
XVB_TIME_ALGO);
// never go above time of algo
// it could be the case if manual donation level is set
needed_time.max(XVB_TIME_ALGO as f32) as u32
needed_time.clamp(0.0, XVB_TIME_ALGO as f32) as u32
}
}