From 0c9a0d87f91688133cd47ba5a7fdd5e61b7c8818 Mon Sep 17 00:00:00 2001 From: Tommi Rantala Date: Tue, 19 Apr 2022 09:39:51 +0300 Subject: [PATCH] tests/pycore: Break out of loop once MemAvailable was read --- tests/pycore | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/pycore b/tests/pycore index bfd7f50..4253647 100755 --- a/tests/pycore +++ b/tests/pycore @@ -21,6 +21,7 @@ with open("/proc/meminfo") as f: for line in f: if line.startswith("MemAvailable:"): availGB = round(int(line.split()[1]) / 1024 ** 2) + break print(f"MemAvailable: {availGB}GB", flush=True)