-
Notifications
You must be signed in to change notification settings - Fork 48
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
Pad percentage outputs #8
Comments
+1 that would be nice. Any updates? |
…at_mem_pused_format" and "@sysstat_mem_pfree_format"
This should fix the problem (more or less like #17, but applied manually after the installation):
SYSSTAT_SCRIPTS_DIR is where the files cpu.sh, mem.sh and swap.sh are located, it is usually:
or
Cheers |
Thanks for taking a look. I tried it out and it works. The only downside that I see for this fix is that if CPU usage is low (less than 10%) the script is still reserving a 2 character space even if you remove the floating point, so you end up with |
@tuv7041 Actually the padding is intentional (as requested in this issue): the CPU usage percentage value varies from X to XX, it causes the status widget to change the width a lot ("CPU" moves its position in the status bar from time to time when this happens), what I think is very distracting. The padding avoids this. Cheers |
oh, sorry, my bad. I commented here a long time ago and forgot about the context (I was more focused on the decimal than the padding). Thanks again for fixing it. |
This is just a quick one - I love this wee plugin!
How would I go about padding the CPU and MEM % outputs? I'd like them to always take up the same amount of space.
The text was updated successfully, but these errors were encountered: