diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2016-10-11 17:22:12 +0200 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2016-10-11 17:22:12 +0200 |
commit | 9cad11401bccd5e93bb5d109176e16b9e83f355a (patch) | |
tree | b5a2c70565d1b254c979992a0f03d9a31d376300 /scripts/procinfo.py | |
parent | 092f71b09e4664e7d631bd8ee3a644e0128f5833 (diff) | |
download | psutil-9cad11401bccd5e93bb5d109176e16b9e83f355a.tar.gz |
fix netbsd compilation
Diffstat (limited to 'scripts/procinfo.py')
-rwxr-xr-x | scripts/procinfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/procinfo.py b/scripts/procinfo.py index b9db6701..55e97f64 100755 --- a/scripts/procinfo.py +++ b/scripts/procinfo.py @@ -301,7 +301,7 @@ def run(pid, verbose=False): break print_("", template % (k, pinfo['environ'][k])) - if pinfo['memory_maps']: + if pinfo.get('memory_maps', None): template = "%-8s %s" print_("mem-maps", template % ("RSS", "PATH")) maps = sorted(pinfo['memory_maps'], key=lambda x: x.rss, reverse=True) |