From 75ed74b2f42a88d942c0f6c9ff0627e843ae37c8 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 24 Feb 2024 23:04:13 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 42294665..f386bd68 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -151,8 +151,13 @@ CHECKTEMP(){ echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR}${idsST[Reset]}${spc}${idsCL[Default]}: ${reading} ${idsCL[Default]}/${spca}${averagedisp}${GAUGESH}" fi if ([ "${average}" != "" ] || [ "${temp_f}" != "" ]) && [[ "${SENSOR}" != *"FAN"* ]]; then - tmp="${spct}${temp_f_disp}${GAUGESH}" - [ "${average}" != "" ] && fws=11 || fws=21 + if [ "${average}" != "" ]; then + fws=11 + tmp="${spct}${averagedisp}${GAUGESH}" + else + fws=21 + tmp="${spct}${temp_f_disp}${GAUGESH}" + fi c=0; spc=''; spc1=`expr ${fws} - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done [ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' ' [ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' '