Skip to content

Commit

Permalink
fix: constraint needed time XvB
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrix126 committed Oct 30, 2024
1 parent 173aadd commit 517c592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper/xvb/algorithm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 517c592

Please sign in to comment.