We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c0d471 commit cdc9684Copy full SHA for cdc9684
LoopFollow/Controllers/Nightscout/Treatments/Overrides.swift
@@ -45,12 +45,12 @@ extension MainViewController {
45
let nextStart = NightscoutUtils.parseDate(nextDateStr)?
46
.timeIntervalSince1970
47
{
48
- end = min(end, nextStart - 300)
+ end = min(end, nextStart - 60) // avoid overlapping overrides
49
}
50
51
end = min(end, maxEndDate)
52
53
- if end - start < 300 { continue }
+ if end - start < 300 { continue } // skip short overrides
54
55
let dot = DataStructs.overrideStruct(
56
insulNeedsScaleFactor: e["insulinNeedsScaleFactor"] as? Double ?? 1,
0 commit comments