mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-12-03 20:30:11 +08:00
fix(profile): preserve delays for future update timestamps
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user