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

[Linux] cpu_freq returns current value in GHz but min/max in MHz #2049

Closed
grobie opened this issue Jan 6, 2022 · 2 comments
Closed

[Linux] cpu_freq returns current value in GHz but min/max in MHz #2049

grobie opened this issue Jan 6, 2022 · 2 comments

Comments

@grobie
Copy link

grobie commented Jan 6, 2022

Summary

  • OS: Linux 5.15.12-arch1-1
  • Architecture: 64bit
  • Psutil version: 5.9.0
  • Python version: Python 3.10.1
  • Type: core

Description

The current value of cpu_freq() seems to return the frequency in Gigahertz, but min+max are returned in Megahertz. I assume #1852 might have changed that?

>>> import psutil
>>> psutil.cpu_freq(True)
[scpufreq(current=3.0, min=400.0, max=4800.0), scpufreq(current=3.0, min=400.0, max=4800.0), scpufreq(current=3.0, min=400.0, max=4800.0), scpufreq(current=3.0, min=400.0, max=4800.0), scpufreq(current=1.084, min=400.0, max=4800.0), scpufreq(current=3.0, min=400.0, max=4800.0), scpufreq(current=3.0, min=400.0, max=4800.0), scpufreq(current=1.695, min=400.0, max=4800.0)]
@giampaolo
Copy link
Owner

83d7067 should have fixed but please try and confirm it worked.

@Zorrototo
Copy link

Any ETA for 5.9.1 release? I would like to know so I can stop holding back 5.8.0 pack for issue in s-tui which should now be fixed for almost two months with this patch. Thanks in advance for reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants