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

Increase CPU percent width by 1 (fixes #81) #91

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

assistcontrol
Copy link
Contributor

@assistcontrol assistcontrol commented Mar 6, 2023

CPU percent width is 5, which accommodates the maximum possible width (100.0). When it's at full width, though, the percent string runs right up against the item before it.

When the graph is enabled, running up against the graph just looks strange, but still readable
([ |||]100.0%). With the graph disabled (-g 0) though, it runs into the memory widget, which makes both of them very difficult to read (11/32GB100.0%).

This commit adds one space to the CPU percent width. It offsets a non-pegged load by one, but it ensures there's always at least one space to separate the widgets.

CPU percent width is 5, which accommodates the maximum possible width
(100.0). When it's at full width, though, the percent string runs right
up against the item before it.

When the graph is enabled, running up against the graph just looks
strange, but still readable ([   |||]100.0%). With the graph disabled
(-g 0) though, it runs into the memory widget, which makes both of them
very difficult to read (11/32GB100%).

This commit adds one space to the CPU percent width. It offsets
a non-pegged load by one, but it ensures there's always at least one
space to separate the widgets.
Copy link
Owner

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@assistcontrol thanks!

@thewtex thewtex merged commit 5420cf8 into thewtex:master Mar 17, 2023
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.

2 participants