Browse Source

Merge pull request #1 from araczkowski/araczkowski-patch-getloadavg

Update bpytop.py
pull/236/head
Andrzej Raczkowski 4 years ago committed by GitHub
parent
commit
c04f97dc62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      bpytop.py

2
bpytop.py

@ -2846,7 +2846,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