Decide whether sub-millisecond Status durations read in µs or fractional ms

Aperta
#2,024 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Read src/lib/formatValue.ts and the tests for DURATION_UNITS to understand the current sub-millisecond formatting and coverage. Compare the two display options against the issue’s examples, then update the unit entry and tests to reflect the chosen behavior. Done means values such as 0.25 ms and 0.04 ms render consistently with that decision.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The Status tab's duration formatter now shows anything under 1 ms in microseconds: a 0.25 ms DB read p95 reads 250 µs, and an axis over sub-millisecond data ticks 0 µs, 100 µs, 200 µs. Before, these read 0.3 ms, or 0.0 ms for anything under 0.05 ms.

Harper reports these metrics in milliseconds, so an operator comparing a chart to raw get_analytics output, a log line, or a config value has to convert. The alternative is fractional milliseconds with enough decimals (0.25 ms, 0.04 ms).

The question: keep µs, or switch sub-millisecond values back to fractional ms? Either is a one-entry change to DURATION_UNITS in src/lib/formatValue.ts plus its tests.

Raised during the pre-push review of the PR that introduced it, where it was kept as a deliberate display choice.

Review-Deferral: 2cb8cc89da20aaeb severity=nit category=correctness

🤖 Generated by Anthropic Claude Code (Claude Opus 5.5); posted via @dawsontoth.

Lingua principale
TypeScript
Stelle
5
Fork
4
Merge medio
1g 19h
PR unite (30g)
144

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di HarperFast/studio

Tutte le issue di HarperFast/studio

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.