From 3ad4fe73859244bbfe02255226b0ae15ca0ac518 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 30 Jan 2024 22:26:45 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 3e50e328..98b50b71 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -329,10 +329,11 @@ CHECKTEMPSENSOR(){ echo -en "${lclr}${lmd}${spct}${temp_f_disp}${GAUGESH}" [ "${average}" != "" ] && echo -en " /${spca}${averagedisp}${GAUGESH}" - if [ "${7}" == "fans" ]; then - echo -en "${idsCL[Default]}${spc}[${idsCL[LightGreen]}${GL_LOW}${GAUGESH}${idsCL[Default]}/${idsCL[Green]}${DEFAULT_ESXI_EXHAUST_MIN}${GAUGESH}${idsCL[Default]}/${idsCL[LightYellow]}${GL_HIGH}${GAUGESH}${idsCL[Default]}]" - - elif [[ "${1}" != *"FAN"* ]]; then + # if [ "${7}" == "fans" ]; then +# echo -en "${idsCL[Default]}${spc}[${idsCL[LightGreen]}${GL_LOW}${GAUGESH}${idsCL[Default]}/${idsCL[Green]}${DEFAULT_ESXI_EXHAUST_MIN}${GAUGESH}${idsCL[Default]}/${idsCL[LightYellow]}${GL_HIGH}${GAUGESH}${idsCL[Default]}]" +# +# el + if [[ "${1}" != *"FAN"* ]]; then tmp="${spct}${temp_f_disp}${GAUGESH}" c=0; spc=''; spc1=`expr 12 - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done [ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' '