diff options
-rw-r--r-- | tests/osinfo.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/osinfo.py b/tests/osinfo.py index 66a2e0ac..a7ebd2ef 100644 --- a/tests/osinfo.py +++ b/tests/osinfo.py @@ -64,9 +64,9 @@ elif env.LINUX: """How much RAM is this process using? (Linux implementation)""" return _VmB('VmRSS') - else: - # Don't have an implementation, at least satisfy the interface. + # Generic implementation. def process_ram(): - """How much RAM is this process using? (placebo implementation)""" - return 0 + """How much RAM is this process using? (stdlib implementation)""" + import resource + return resource.getrusage(resource.RUSAGE_SELF).ru_maxrss |