aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/statistics.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-03-22 22:04:40 -0400
committerKevin O'Connor <kevin@koconnor.net>2020-03-22 22:04:40 -0400
commit6b7e917a8e0f266eddcc3c4e65691f17b203ef7e (patch)
tree1ec89b59b8cdebf06d6341b4172f1409603963e0 /klippy/extras/statistics.py
parent6aae62542c2b571c6533565ff7d673d448ed07e0 (diff)
downloadkutter-6b7e917a8e0f266eddcc3c4e65691f17b203ef7e.tar.gz
kutter-6b7e917a8e0f266eddcc3c4e65691f17b203ef7e.tar.xz
kutter-6b7e917a8e0f266eddcc3c4e65691f17b203ef7e.zip
statistics: Exit loop as soon as MemAvailable found
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/statistics.py')
-rw-r--r--klippy/extras/statistics.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/extras/statistics.py b/klippy/extras/statistics.py
index f79c7add..1adcdce4 100644
--- a/klippy/extras/statistics.py
+++ b/klippy/extras/statistics.py
@@ -16,6 +16,7 @@ def get_os_stats(eventtime):
for line in data.split('\n'):
if line.startswith("MemAvailable:"):
msg = "%s memavail=%s" % (msg, line.split()[1])
+ break
except:
pass
return (False, msg)