From ea0689b6f172da110380e0ed0fa8b06a335be40a Mon Sep 17 00:00:00 2001 From: nojhan Date: Wed, 19 Oct 2022 09:00:02 +0200 Subject: [PATCH] fix(load): use the adjusted metric --- dotmatrix.theme | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotmatrix.theme b/dotmatrix.theme index 80a95de..182342f 100644 --- a/dotmatrix.theme +++ b/dotmatrix.theme @@ -343,7 +343,8 @@ _lp_dotmatrix_theme_prompt() { local load= if _lp_load_color ; then - if [[ $lp_load -ge "$DOTMATRIX_LOAD_THRESHOLD" ]]; then + + if [[ $lp_load_adjusted -ge "$DOTMATRIX_LOAD_THRESHOLD" ]]; then __dotmatrix_make_field "$lp_load" ${DOTMATRIX_COLOR_WARN[@]+"${DOTMATRIX_COLOR_WARN[@]}"} load="${dotmatrix_field}${LP_MARK_LOAD}" has_warns=$((has_warns+1))