summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2015-06-11 16:20:03 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-06-11 16:20:03 -0300
commitd4e266ff9ce88d85a9d9c29400721136444918b4 (patch)
tree1afe1bd87b21015c3c215a88da6e009a168a2dc4
parente13d9c086c14d7553656d9def163d6102211e2f9 (diff)
downloadpython-linux-procfs-d4e266ff9ce88d85a9d9c29400721136444918b4.tar.gz
pidstat: Fix process_flags() method
It was referencing self.flags, that doesn't exists, fix it by making it access self.fields["flags"] instead. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rwxr-xr-xprocfs/procfs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/procfs/procfs.py b/procfs/procfs.py
index 2d0e2b0..f1604ba 100755
--- a/procfs/procfs.py
+++ b/procfs/procfs.py
@@ -115,7 +115,7 @@ class pidstat:
if attr[:3] != "PF_":
continue
value = getattr(self, attr)
- if value & self.flags:
+ if value & self.fields["flags"]:
sflags.append(attr)
return sflags