We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f41efc0 + cc727e1 commit 795f610Copy full SHA for 795f610
LoopFollow/Controllers/Nightscout/Treatments/Overrides.swift
@@ -21,7 +21,10 @@ extension MainViewController {
21
}
22
23
let now = Date().timeIntervalSince1970
24
- let maxEndDate = now + Storage.shared.predictionToLoad.value * 3600
+ let minimumFutureDisplayHours = 0.25
25
+ let effectiveFutureHours = max(Storage.shared.predictionToLoad.value, minimumFutureDisplayHours)
26
+ let maxEndDate = now + effectiveFutureHours * 3600
27
+
28
let graphHorizon = dateTimeUtils.getTimeIntervalNHoursAgo(N: 24 * Storage.shared.downloadDays.value)
29
30
for i in 0 ..< sorted.count {
0 commit comments