Skip to content

Commit 0c9a0d8

Browse files
committed
tests/pycore: Break out of loop once MemAvailable was read
1 parent d6cd28a commit 0c9a0d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/pycore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ with open("/proc/meminfo") as f:
2121
for line in f:
2222
if line.startswith("MemAvailable:"):
2323
availGB = round(int(line.split()[1]) / 1024 ** 2)
24+
break
2425

2526
print(f"MemAvailable: {availGB}GB", flush=True)
2627

0 commit comments

Comments
 (0)