mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Fix calculation of daily load (#3516)
* Fix calculation of daily load * Daily load in reviews/day
This commit is contained in:
parent
fe0f5370b0
commit
7500beaba3
2 changed files with 4 additions and 7 deletions
|
@ -26,17 +26,14 @@ impl GraphsContext {
|
|||
due - (self.days_elapsed as i32)
|
||||
};
|
||||
|
||||
daily_load += 1.0 / c.interval.max(1) as f32;
|
||||
|
||||
// still want to filtered out buried cards that are due today
|
||||
if due_day == 0 && matches!(c.queue, CardQueue::UserBuried | CardQueue::SchedBuried) {
|
||||
continue;
|
||||
}
|
||||
have_backlog |= due_day < 0;
|
||||
*due_by_day.entry(due_day).or_default() += 1;
|
||||
if matches!(c.queue, CardQueue::Review | CardQueue::DayLearn) {
|
||||
daily_load += 1.0 / c.interval.max(1) as f32;
|
||||
} else {
|
||||
daily_load += 1.0;
|
||||
}
|
||||
}
|
||||
FutureDue {
|
||||
future_due: due_by_day,
|
||||
|
|
|
@ -145,8 +145,8 @@ export function buildHistogram(
|
|||
},
|
||||
{
|
||||
label: tr.statisticsDailyLoad(),
|
||||
value: tr.statisticsReviews({
|
||||
reviews: sourceData.dailyLoad,
|
||||
value: tr.statisticsReviewsPerDay({
|
||||
count: sourceData.dailyLoad,
|
||||
}),
|
||||
},
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue