Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asukaminato0721 committed Nov 22, 2023
1 parent 6c0f208 commit 0653fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/optimal_retention.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ impl<B: Backend> FSRS<B> {
}
// update by at least tol1
u = x + if rat.abs() < tol1 {
rat.is_sign_positive() as i8 as f64 * tol1
tol1 * if rat >= 0.0 { 1.0 } else { -1.0 }
} else {
rat
};
Expand Down

0 comments on commit 0653fc4

Please sign in to comment.