Skip to content

Commit 2bd0c5b

Browse files
committed
Comment things
1 parent cca8ec1 commit 2bd0c5b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/osinfo.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class PROCESS_MEMORY_COUNTERS_EX(ctypes.Structure):
3535
return mem_struct.PrivateUsage
3636

3737
elif sys.platform == 'linux2':
38+
# Linux implementation
3839
import os
3940

4041
_scale = {'kb': 1024, 'mb': 1024*1024}
@@ -57,11 +58,12 @@ def _VmB(key):
5758
return int(float(v[1]) * _scale[v[2].lower()])
5859

5960
def process_ram():
60-
"""How much RAM is this process using? (Linux implementation"""
61+
"""How much RAM is this process using? (Linux implementation)"""
6162
return _VmB('VmRSS')
6263

6364

6465
else:
66+
# Don't have an implementation, at least satisfy the interface.
6567
def process_ram():
66-
"""How much RAM is this process using? (no implementation)"""
68+
"""How much RAM is this process using? (placebo implementation)"""
6769
return 0

0 commit comments

Comments
 (0)