Browse Source

Merge branch 'psutil-loadavg'

pull/259/head
aristocratos 4 years ago
parent
commit
8fe96f81d4
  1. 2
      bpytop.py

2
bpytop.py

@ -2940,7 +2940,7 @@ class CpuCollector(Collector):
errlog.exception(f'{e}')
else:
pass
cls.load_avg = [round(lavg, 2) for lavg in os.getloadavg()]
cls.load_avg = [round(lavg, 2) for lavg in psutil.getloadavg()]
cls.uptime = str(timedelta(seconds=round(time()-psutil.boot_time(),0)))[:-3]
if CONFIG.check_temp and cls.got_sensors:

Loading…
Cancel
Save