Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[CentOS] cpu_freq does not return proper type in some cases #1456
Labels
Comments
|
Can you make a PR? |
|
IF PR means pull request, sorry, no - not an experience git user and don't have a couple hours to learn right now. :-) The one-liner fix is above. |
|
@cschanzlenist, @giampaolo if it's OK by you, I have opened a PR to fix the issue #1487 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Linux
CentOS 7.6
Name: psutil
Version: 5.6.1
Per https://psutil.readthedocs.io/en/latest/ , cpu_freq should return 0 if min and max cannot be determined.
However, the code (_pslinux.py line 722) can return None, which breaks the s-util package I was trying to use due to a type mismatch.
Either the documentation should be corrected or the code (likely the code) with:
For others to reference/find, here's the traceback that s-tui experienced: