Skip to content

feat: watch and the panel show the seconds left of each hold - #95

Merged
altrdev merged 2 commits into
mainfrom
feat/holds-countdown
Oct 19, 2026
Merged

altrdev merged 2 commits into
mainfrom
feat/holds-countdown

Conversation

@altrdev

@altrdev altrdev commented Oct 19, 2026

Copy link
Copy Markdown
Owner

watch had a line for /cpu with its seconds left, but /memory, /leak, /disk, /fd and /connections only moved a bar: with two tests running there was no way to see how long the second one had left.

  • Each Budget notes when its running holds let go (ends_in), and seconds_left is the longest of them, None when nothing is held. A leak counts from the moment it stops growing.
  • /info has secondsLeft in memory, disk, fd and connections (null when idle).
  • watch prints a line for each one that is holding, like /memory: 100 MB, 18 s left, lit in the colour view; the control panel shows the same as chips. Nothing is shown for what is not held.

Tests: the budget (longest hold, none), /info against real holds, the watch view with and without holds. Checked with torchio watch --once against a server running /cpu, /memory, /disk and /fd.

🤖 Generated with Claude Code

@altrdev
altrdev merged commit ef04329 into main Oct 19, 2026
6 checks passed
@altrdev
altrdev deleted the feat/holds-countdown branch October 20, 2026 13:11
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