fix(profile): preserve delays for future update timestamps

This commit is contained in:
Tunglies
2026-12-03 17:59:24 +08:00
parent 041454be57
commit c4ee0e0c8a
@@ -28,7 +28,7 @@ impl SubscriptionSchedule {
let full = Self::interval_duration(interval_minutes);
let elapsed = updated
.filter(|updated| *updated > 0)
.map_or(0, |updated| now.saturating_sub(updated as i64).max(0) as u64);
.map_or(0, |updated| (now.max(0) as u64).saturating_sub(updated as u64));
Self {
interval_minutes,