diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-04-22 23:36:47 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-04-22 23:36:47 +0200 |
commit | 5608fff80bd077cef984935432e43de7dbfd3184 (patch) | |
tree | aec9fa561e57fedf74923cdeb7fc6c8a41580385 | |
parent | 9d24ec29c3f865bfb4849beb57cb95255dfb4c2b (diff) | |
download | psutil-5608fff80bd077cef984935432e43de7dbfd3184.tar.gz |
#1015: fix python3 failure https://travis-ci.org/giampaolo/psutil/jobs/224770921
-rw-r--r-- | psutil/_pslinux.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py index 6b3a951c..3ae4b29a 100644 --- a/psutil/_pslinux.py +++ b/psutil/_pslinux.py @@ -499,8 +499,8 @@ def swap_memory(): # for linux containers, see: # https://github.com/giampaolo/psutil/issues/1015 try: - total = mems['SwapTotal:'] - free = mems['SwapFree:'] + total = mems[b'SwapTotal:'] + free = mems[b'SwapFree:'] except KeyError: _, _, _, _, total, free, unit_multiplier = cext.linux_sysinfo() total *= unit_multiplier |