diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-06-11 16:20:03 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-06-11 16:20:03 -0300 |
commit | d4e266ff9ce88d85a9d9c29400721136444918b4 (patch) | |
tree | 1afe1bd87b21015c3c215a88da6e009a168a2dc4 | |
parent | e13d9c086c14d7553656d9def163d6102211e2f9 (diff) | |
download | python-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-x | procfs/procfs.py | 2 |
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 |