summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2016-09-18 17:23:37 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2016-09-18 17:23:37 +0200
commita76ba8f2e415ced5ca500484e9be1da48c3633da (patch)
treefdb1110fbe130b82cda5e487a1e69cb01d5914fc
parent9f044a84c4ac8c4180ae308be04b9cd287706e07 (diff)
downloadpsutil-a76ba8f2e415ced5ca500484e9be1da48c3633da.tar.gz
fix typos
-rw-r--r--psutil/_pslinux.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py
index bdf01c33..c4a5a07e 100644
--- a/psutil/_pslinux.py
+++ b/psutil/_pslinux.py
@@ -316,8 +316,8 @@ def virtual_memory():
# shared
if shared == 0:
- # Note: if 0 (e.g. my Ubuntu 14.04, kernel 3.13 at least)
- # this can be determined from /proc/meminfo.
+ # Note: if 0 (e.g. Ubuntu 14.04, kernel 3.13) this can be
+ # determined from /proc/meminfo.
try:
shared = mems['Shmem:'] # kernel 2.6.32
except KeyError:
@@ -372,7 +372,7 @@ def virtual_memory():
# http://askubuntu.com/a/369589
# http://unix.stackexchange.com/a/65852/168884
try:
- avail = mems['MemAvailable:']
+ avail = mems[b'MemAvailable:']
except KeyError:
# Column is not there; it's likely this is an older kernel.
# In this case "free" won't show an "available" column.