Skip to content

Commit

Permalink
Fix AttributeError due to IOError on /proc/X/statm
Browse files Browse the repository at this point in the history
Closes #66
  • Loading branch information
a1exsh committed Sep 5, 2016
1 parent 981bf60 commit 25c3f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ def _get_memory_usage(self, pid):
logger.info("calculating memory for process {0}".format(pid))
except IOError as e:
logger.warning('Unable to read {0}: {1}, process memory information will be unavailable'.format(
self.format(pid), e))
self.STATM_FILENAME.format(pid), e))
finally:
fp and fp.close()
if statm and len(statm) >= 3:
Expand Down

0 comments on commit 25c3f52

Please sign in to comment.