-
Couldn't load subscription status.
- Fork 346
fix(scripts/cpu_info): ignore I/O wait time #363
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
base: master
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughLinux branch of get_percent in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Areas to check:
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)scripts/cpu_info.sh (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dracula/tmuxreports my CPU usage as ~20% when my computer is mostly idle, whereas other tools, such asewwandwaybar, report it as only ~2%. This is because we are counting I/O wait time as CPU usage. I propose ignoring it and deducting it from the total percentage. After this, the results are coherent across tools.