Skip to content

usage history: thinning drops a clock step-back smaller than 15 min #37

Closed

Description

@scuttletoby

apps/server/src/usage/UsageReadingsHistory.ts:276-286: when the clock steps back by less than the thin interval (15 min), thinning removes the segment break. The PR body says readings after a step back are never thinned against the ones before it; that holds only for steps of 15 min or more. Harm is small (time error at most the step). Fix: keep the reading on each side of a segment break when thinning, plus a test.

From the round-4 check of #24 (#24 (comment)). Left as a minor at merge.

🤖 Generated with Claude Code

Activity

  1. added 3 commits that reference this issue on Nov 18, 2026
    a0bdba9
    e2941a3
    ac0473e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions