dracula / tmux

🧛🏻‍♂️ Dark theme for tmux
https://draculatheme.com/tmux
MIT License
660 stars 312 forks source link

Bug: CPU usage is not shown #250

Open mohepp opened 9 months ago

mohepp commented 9 months ago

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

ethancedwards8 commented 8 months ago

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.