Fix sparse today stats

Not safe to assume revlog is ordered by query
This commit is contained in:
Damien Elmes 2023-01-05 10:14:37 +10:00
parent bc6975973e
commit 8206f39bdc

View File

@ -11,7 +11,7 @@ impl GraphsContext {
let start_of_today_ms = self.next_day_start.adding_secs(-86_400).as_millis().0;
for review in self.revlog.iter().rev() {
if review.id.0 < start_of_today_ms {
break;
continue;
}
if review.review_kind == RevlogReviewKind::Manual {
continue;