mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 12:32:43 +00:00
Today's glucose mean was held against a band built from whole days. By mid-morning the day holds a fasting reading and nothing after, so an ordinary morning read as "below your range". A glucose day still in progress is now compared with the earlier days cut at the same local clock time, read in SQL so a dense stream is averaged whole rather than through its newest fifty rows. With fewer than seven earlier days that have readings in those hours, today gets no verdict. The day-aggregate reader gains the local-clock cut; an integration case pins it against the in-memory fold in a half-hour zone.