Просмотр исходного кода

chore: bump calendar update ignore time to 1 minute

Andreas Stokholm 1 год назад
Родитель
Сommit
eb3a7bf376
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      FreeAPS/Sources/Services/Calendar/CalendarManager.swift

+ 2 - 2
FreeAPS/Sources/Services/Calendar/CalendarManager.swift

@@ -212,8 +212,8 @@ final class BaseCalendarManager: CalendarManager, Injectable {
         guard settingsManager.settings.useCalendar, let calendar = currentCalendar,
               let determinationId = await getLastDetermination() else { return }
 
-        // Ignore the update if the last one was less than 10 seconds ago
-        if lastCalendarUpdate.timeIntervalSinceNow > -10 {
+        // Ignore the update if the last one was less than 1 minute ago
+        if lastCalendarUpdate.timeIntervalSinceNow > -60 {
             return
         }