diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-08-22 08:44:06 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-08-22 08:44:06 +0100 |
commit | 98cdb82d8ea71c8388848d3ae418a365a323d10b (patch) | |
tree | 34b2ccba27176796248771a22a54df7b3cc0ece0 /cliapp/app.py | |
parent | 25bdeb2ff59433d78bca0f46f61b7c1c463cb6ff (diff) | |
download | cliapp-98cdb82d8ea71c8388848d3ae418a365a323d10b.tar.gz |
Disable VmRSS reporting on non-Linux platforms
Diffstat (limited to 'cliapp/app.py')
-rw-r--r-- | cliapp/app.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cliapp/app.py b/cliapp/app.py index 8e280af..c397c39 100644 --- a/cliapp/app.py +++ b/cliapp/app.py @@ -609,6 +609,8 @@ class Application(object): def _vmrss(self): # pragma: no cover '''Return current resident memory use, in KiB.''' + if platform.system() != 'Linux': + return 0 f = open('/proc/self/status') rss = 0 for line in f: |