summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-11-23 06:30:04 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-11-23 06:30:04 -0500
commit65b55ebab5ecb16b05696a1972a39625695e5718 (patch)
treed5ddb92ace597e2e0cf3cea640c717c5b4934200
parenta6792ad4c43d2b4c689161bfbbc5ce5cc3399e7f (diff)
downloadpython-coveragepy-65b55ebab5ecb16b05696a1972a39625695e5718.tar.gz
Comment things
-rw-r--r--test/osinfo.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/osinfo.py b/test/osinfo.py
index 5dc3899..7a82610 100644
--- a/test/osinfo.py
+++ b/test/osinfo.py
@@ -35,6 +35,7 @@ if sys.hexversion >= 0x02050000 and sys.platform == 'win32':
return mem_struct.PrivateUsage
elif sys.platform == 'linux2':
+ # Linux implementation
import os
_scale = {'kb': 1024, 'mb': 1024*1024}
@@ -57,11 +58,12 @@ elif sys.platform == 'linux2':
return int(float(v[1]) * _scale[v[2].lower()])
def process_ram():
- """How much RAM is this process using? (Linux implementation"""
+ """How much RAM is this process using? (Linux implementation)"""
return _VmB('VmRSS')
else:
+ # Don't have an implementation, at least satisfy the interface.
def process_ram():
- """How much RAM is this process using? (no implementation)"""
+ """How much RAM is this process using? (placebo implementation)"""
return 0