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

Bug: CPU usage is not shown #250

Open
mohepp opened this issue Feb 13, 2024 · 1 comment
Open

Bug: CPU usage is not shown #250

mohepp opened this issue Feb 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mohepp
Copy link

mohepp commented Feb 13, 2024

Describe the bug

The cpu-usage percentage is shown as empty string.
The reason for this is that the script cpu_usage.sh is using LC_NUMERIC=en_US.UTF-8 top -bn2 -d 0.01 | grep "Cpu(s)" which outputs an empty string for me. top seems to display CPU(s) for me instead of Cpu(s). Changing it to grep -i "Cpu(s)" to ignore the cases here worked for me.

To Reproduce

I actually don't know how to reproduce this as i don't know why top is doing this.

Expected behavior

Display the CPU usage in percentages.

System

  • OS: Ubuntu 22.04.3 LTS
  • Tmux Version: 3.2a
@mohepp mohepp added the bug Something isn't working label Feb 13, 2024
@ethancedwards8
Copy link
Member

Hm yeah I remember this being an issue. I could have sworn we had something that fixed it though. If you want to send in a PR fixing this, I'll merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants