Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display CPU usage as a bar graph using Unicode characters #506

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

englebienne
Copy link

@englebienne englebienne commented Nov 23, 2022

Extends configuration keywords "%usage" with "%usagebar" and "%cpu" with "%cpubar", which display the corresponding statistics as a bar, one character wide, instead of a percentage. These keywords can be combined within a single configuration.

The graph is relatively coarse, with a resolution of 11 percentage points per bar increment, but it compresses the width of the representation from (typically) four characters into one. This is particularly useful on machines with larger numbers of cores.

Extend configuration keywords "%usage" with "%usagebar" and
"%cpu<n>" with "%cpubar<n>", which display the corresponding
statistics as a bar, one character wide, instead of a percentage.
These keywords can be combined in a single configuration.

The graph is relatively coarse, with a resolution of 11 percentage
points per bar increment, but it compresses the width of the
representation from (typically) four characters to one. This is
particularly useful on machines with larger numbers of cores.
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.

None yet

1 participant