Skip to content

head: the spending rate multiplies from the days it names - #2204

Merged
santoshkumarradha merged 5 commits into
app/v3from
c34/rate-days
Nov 3, 2026
Merged

santoshkumarradha merged 5 commits into
app/v3from
c34/rate-days

Conversation

@santoshkumarradha

Copy link
Copy Markdown
Member

What changes

The spending read says "$0.05 a day over those 10 days", but it worked the figures from the exact hours. Ten calendar days across the autumn clock change are 241 hours, so the same line ended with "thirty days is $1.49". The rate and projections now come from the whole days the line names.

Evidence

TestTheSpendingReadComputesTheRateAndTheProjections failed 3 of 3 after the clock change and passes here. New TestTheRateLineMultipliesTheDaysItNames uses a fixed 241-hour window: it failed before the fix on any machine and passes now. internal/head is green.

Limits

A short window now rounds: 0.6 or 1.4 days is quoted as one day's rate, and the line says "1 day". Touched package only; the full gate runs at landing.

🤖 Generated with Claude Code

@santoshkumarradha
santoshkumarradha marked this pull request as ready for review November 3, 2026 08:42
@santoshkumarradha
santoshkumarradha merged commit c04e959 into app/v3 Nov 3, 2026
@santoshkumarradha
santoshkumarradha deleted the c34/rate-days branch November 3, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant