diff --git a/framarama/base/device.py b/framarama/base/device.py index 2d2f29a3..39c61476 100755 --- a/framarama/base/device.py +++ b/framarama/base/device.py @@ -233,7 +233,7 @@ def df_tmp(): def uptime_loadavg(): _info = Process.exec_run(['uptime']) - return float(_info.split()[-3].rstrip(b',')) if _info else None + return float(_info.split()[-3].rstrip(b' ').strip(b',').replace(b',', b'.')) if _info else None def read_thermal(): _info = Filesystem.file_read('/sys/class/thermal/thermal_zone0/temp')