diff options
author | aristocratos <gnmjpl@gmail.com> | 2021-04-25 02:44:52 +0200 |
---|---|---|
committer | aristocratos <gnmjpl@gmail.com> | 2021-04-25 02:44:52 +0200 |
commit | 8c9972c8d35c0a4a0a460d2552cda60a40ec7619 (patch) | |
tree | ff129ed5ea8b2f223031ea7580dd3bd512ef938d | |
parent | 884aeb83f558c9a4f1748dd8bdea002291a33686 (diff) |
Fixed: cpu frequency type change in psutil 5.8.1
-rwxr-xr-x | bpytop.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3044,7 +3044,8 @@ class CpuCollector(Collector): del cls.cpu_usage[n][0] try: if hasattr(psutil.cpu_freq(), "current"): - cls.cpu_freq = round(psutil.cpu_freq().current) + freq: float = psutil.cpu_freq().current + cls.cpu_freq = round(freq * (1 if freq > 10 else 1000)) except Exception as e: if not cls.freq_error: cls.freq_error = True |