diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2016-12-03 18:05:07 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2016-12-03 18:05:07 +0100 |
commit | 6ba1ac4ebfcd8c95fca324b15606ab0ec1412d39 (patch) | |
tree | bb9230ade3eb9ab09efd78b367041bea38fcb761 /psutil/_psosx.py | |
parent | d975e807aee0ac902d8105d584c22fb526ecd87d (diff) | |
download | psutil-6ba1ac4ebfcd8c95fca324b15606ab0ec1412d39.tar.gz |
#941: implement cpu_freq() for OSX
Diffstat (limited to 'psutil/_psosx.py')
-rw-r--r-- | psutil/_psosx.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/psutil/_psosx.py b/psutil/_psosx.py index 2665080e..0778b5fb 100644 --- a/psutil/_psosx.py +++ b/psutil/_psosx.py @@ -165,6 +165,11 @@ def cpu_stats(): ctx_switches, interrupts, soft_interrupts, syscalls) +def cpu_freq(): + curr, min_, max_ = cext.cpu_freq() + return [_common.scpufreq(curr, min_, max_)] + + # ===================================================================== # --- disks # ===================================================================== |