diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-02-03 12:31:50 +0100 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-02-03 12:31:50 +0100 |
| commit | 65037c09c73c8ea789965afc03cfff0f7f9d5e1e (patch) | |
| tree | add1335c836448e31de51108999f8a94c6ea28dc /psutil/_pslinux.py | |
| parent | 0a02bdcf7b3fcfe9ab328148187ed9f4b9f93a00 (diff) | |
| download | psutil-65037c09c73c8ea789965afc03cfff0f7f9d5e1e.tar.gz | |
#966: add more sensors_battery() linux specific testst
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 1d5005eb..82cdb2d3 100644 --- a/psutil/_pslinux.py +++ b/psutil/_pslinux.py @@ -1142,7 +1142,7 @@ def sensors_battery(): except ZeroDivisionError: percent = 0.0 else: - percent = int(cat(root + "/capacity"), fallback=null) + percent = int(cat(root + "/capacity", fallback=null)) if percent == null: return None |
