From 83f07c61fa28f6b8a98cc4c25fbc015d9a829db6 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 15 Apr 2024 11:45:46 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 61dd8ed8..1fc124a1 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -271,9 +271,12 @@ CHECKTEMP(){ if [ $(bc -l <<< "${temp_f} >= ${temp_crit}") -eq 1 ] || ([ "${TTYPE}" == "fans" ] && [ $(bc -l <<< "${temp_f} > $(bc <<< "scale=2; ${GL_HIGH}+5")") -eq 1 ]); then lclr="${idsCL[LightRed]}" lmd="CRITICAL" - elif ([ $(bc -l <<< "${temp_f} >= ${temp_warn}") -eq 1 ] && [ $(bc -l <<< "${temp_f} < ${temp_crit}") -eq 1 ]) || ([ "${TTYPE}" == "fans" ] && ([ $(bc -l <<< "${temp_f} < ${GL_LOW}") -eq 1 ] || [ $(bc -l <<< "${GL_HIGH} < ${temp_f}") -eq 1 ])); then + elif [ $(bc -l <<< "${temp_f} >= ${temp_warn}") -eq 1 ] && [ $(bc -l <<< "${temp_f} < ${temp_crit}") -eq 1 ]; then lclr="${idsCL[Yellow]}" lmd="WARNING " + elif [ "${TTYPE}" == "fans" ] && [ $(bc -l <<< "${temp_f} < ${GL_LOW}") -eq 1 ]; then + lclr="${idsCL[LightCyan]}" + lmd="COOL " else lclr="${idsCL[Green]}" lmd="Normal "