diff options
| author | Alex Manuskin <amanusk@protonmail.com> | 2019-04-25 06:17:11 +0300 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-04-25 11:17:11 +0800 |
| commit | 7ee88afd9f6730289cf9e34f70210fdb387b8a71 (patch) | |
| tree | 86a14ec27de8f09b2f222e5a1898d37fe8dccdbf /psutil/_pslinux.py | |
| parent | 611b44ec6e830d98c768038c66683c3fa1a7b491 (diff) | |
| download | psutil-7ee88afd9f6730289cf9e34f70210fdb387b8a71.tar.gz | |
Update cpu_freq to return 0 for max/min if not available (#1487)
Diffstat (limited to 'psutil/_pslinux.py')
| -rw-r--r-- | psutil/_pslinux.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py index eccfeed2..4c973c2d 100644 --- a/psutil/_pslinux.py +++ b/psutil/_pslinux.py @@ -712,7 +712,7 @@ elif os.path.exists("/proc/cpuinfo"): for line in f: if line.lower().startswith(b'cpu mhz'): key, value = line.split(b'\t:', 1) - ret.append(_common.scpufreq(float(value), None, None)) + ret.append(_common.scpufreq(float(value), 0.0, 0.0)) return ret |
