Skip to content

fix(curses): show decimal latency scale#637

Merged
rewolff merged 8 commits into
traviscross:masterfrom
Komzpa:darafei/curses-decimal-scale
May 25, 2026
Merged

fix(curses): show decimal latency scale#637
rewolff merged 8 commits into
traviscross:masterfrom
Komzpa:darafei/curses-decimal-scale

Conversation

@Komzpa

@Komzpa Komzpa commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • format curses scale labels with decimal milliseconds when the scale is below 10 ms
  • keep whole-millisecond labels for larger values so the existing scale stays compact
  • add formatter coverage for sub-millisecond and fractional millisecond labels

Fixes #186.

Stacked on #636 because this reuses the new ui/format.c helper module from that PR.

Tests

  • git diff --check
  • make -j "$(nproc)" format-count-test && ./format-count-test
  • make -j "$(nproc)"
  • make check TESTS=format-count-test
  • sudo python3 ./test/cmdparse.py
  • GitHub compile-linux and lint passed

@Komzpa Komzpa force-pushed the darafei/curses-decimal-scale branch from a4a147e to ff78275 Compare May 9, 2026 09:45
@Komzpa Komzpa marked this pull request as ready for review May 9, 2026 10:13
@Komzpa Komzpa force-pushed the darafei/curses-decimal-scale branch from ff78275 to 214a96b Compare May 9, 2026 10:36
@Komzpa Komzpa force-pushed the darafei/curses-decimal-scale branch from 214a96b to 5d31dc3 Compare May 9, 2026 11:12
@Komzpa Komzpa force-pushed the darafei/curses-decimal-scale branch from 5d31dc3 to d9d9ccf Compare May 25, 2026 11:45
@rewolff rewolff merged commit 23ca7f0 into traviscross:master May 25, 2026
2 checks passed
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.

Autoscaling With Decimals

2 participants