From 390318ec2ea087a5d84171d866633393bb92dfb7 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 26 Dec 2023 13:48:07 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 81ea9417..7acf9c66 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -96,7 +96,13 @@ CHECKTEMPSENSOR(){ echo ${PW_THRESHOLDS[${1}]} | cut -d',' -f 1 | read temp_warn echo ${PW_THRESHOLDS[${1}]} | cut -d',' -f 2 | read temp_crit fi - [ "${PW_SENSOR_TYPE[${1}]}" == "cpu" ] && GAUGESH="'%" || GAUGESH="'F" + if [ "${PW_SENSOR_TYPE[${1}]}" == "cpu" ]; then + GAUGESH="'%" + elif [ "${PW_SENSOR_TYPE[${1}]}" == "system" ] && [[ "${1}" = *"FAN"* ]]; then + GAUGESH="'RPM" + else + GAUGESH="'F" + fi if [ "${6}" != "noavg" ]; then [ "${6}" != "" ] && [[ "${6}" =~ ^[0-9]+$ ]] && avgdays=${6} || avgdays=3