Fix averages
This commit is contained in:
fraxle
2026-08-09 13:06:40 +01:00
parent 9ce32f59e5
commit 08155e0100
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -593,7 +593,7 @@ export function computeGlanceSummary(todayRows, profile, variant, skinType, cols
}
// Flagged off the high, matching the "5 degrees against the normal high" rule.
const alert = (aHigh != null ? aHigh : aMean) >= 5;
return [{ icon: '🌡', label: '1991-2020 Average', value, sub, alert, grp: 'ambient' }];
return [{ icon: '🌡', label: 'Pre-2020 24h Average', value, sub, alert, grp: 'ambient' }];
})();
// ── Good Driving Time ──────────────────────────────────────────────────
@@ -1161,7 +1161,7 @@ export function computeBestDay(weekDays, nowLocalISO) {
// A run spanning nearly all the daylight is better said than shown: printing
// "6am - 9pm" makes the reader parse a time range to learn "all day".
const window = c.daylight > 0 && c.len >= c.daylight - 1
? 'comfortable all day'
? 'all day'
: `${hh(c.from.iso)} ${hh(endIso)}`;
return {