From d37e481acb8708025039f05b5ba412390c38aa7d Mon Sep 17 00:00:00 2001 From: Martinez Date: Sat, 26 Dec 2015 22:33:19 +0100 Subject: [PATCH] add a warning when running dangerously old Linux kernels --- libexec/render.py | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/libexec/render.py b/libexec/render.py index 6e4941e..65a6b4d 100755 --- a/libexec/render.py +++ b/libexec/render.py @@ -38,6 +38,8 @@ COLOR_GIT_STAGED = 10 COLOR_PROMPT_OK = 14 COLOR_PROMPT_ERROR = 1 +COLOR_ERROR = 196 + MOUNT_IGNORE_FS = ["iso9660", "tmpfs"] MOUNT_IGNORE_DIR = ["/dev", "/proc", "/sys"] @@ -430,25 +432,33 @@ class StatsPart(Part): swap_total = 0 swap_free = 0 + # MemAvailable is not available on 2**20: