mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2025-04-13 10:11:56 +00:00
fix: constraint needed time XvB
This commit is contained in:
parent
9a863ebc76
commit
4e363e59c5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue