mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-15 02:36:12 -04:00
A mode's own drain-rate bucket starts empty until it accumulates history, so toggling ANC into an unlearned mode fell straight through to Apple's optimistic spec rating while the mode just left showed its worse measured rate. Result: enabling ANC could make the displayed time jump up ~1h. Fill an empty ANC bucket at display time with the less-optimistic of the mode-agnostic UNKNOWN reading and a sibling mode's learned rate, scaled by the ratio of the two modes' rated drain. Scoped to spec'd models and device-supported modes; picks the best-evidenced sibling, tie-broken by closest rated drain then recency. No persistence or UI change. The existing spec ceiling and display clamp still backstop the borrowed rate.