mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 20:42:43 +00:00
The coach's cycle snapshot read a year of raw readings for the phase crosstab, including steps, heart-rate variability and CGM glucose. On a CGM account that is over 100 000 objects per snapshot. The crosstab only uses each day's sum and count after picking one source and device per day, and the pick depends only on which sources and devices are present. readSourceDayAggregates returns one row per type, day, source and device, and the day map now carries each row's reading count, so the day values are the ones the raw readings give. The 30-day clinical glucose reads stay raw: time in range, SD, J-index and the risk indices are functions of individual readings, and a sensor's rate bounds the window below 45 000 rows. Refs #1023