This commit is contained in:
Luc Mcgrady 2025-11-26 21:02:58 +00:00
parent d11b803b88
commit afbec6bac7
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C

View file

@ -302,7 +302,7 @@ impl Collection {
.collect::<Result<HashMap<_, _>>>()?;
let start_memorized = cards
.iter()
.fold(0., |p, c| p + c.retention_on(&req.params, 0.));
.fold(0., |p, c| p + c.retention_on(&req.params, req.days_to_simulate as f32));
Ok(SimulateFsrsWorkloadResponse {
start_memorized,
memorized: dr_workload.iter().map(|(k, v)| (*k, v.0)).collect(),