F1bonacc1 / process-compose

Process Compose is a simple and flexible scheduler and orchestrator to manage non-containerized applications.
https://f1bonacc1.github.io/process-compose/
Apache License 2.0
1.34k stars 52 forks source link

Allow specifying duration for --ref-rate/-r flag #184

Closed diamondburned closed 6 months ago

diamondburned commented 6 months ago

This commit changes the --ref-rate/-r flag so that it accepts both an integer in seconds (original behavior) and a custom duration string (new behavior). This lets the user draw the UI at a higher refresh rate such as 30fps.

It also makes a minor change in src/tui/proc-table.go, changing from using time.After to time.Ticker to make the code slightly more performant.

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud