Update temp.inc.sh
This commit is contained in:
@@ -648,7 +648,7 @@ SENDTEMP(){
|
|||||||
cw=35;
|
cw=35;
|
||||||
echo
|
echo
|
||||||
echo -en "Sensor Temperature(s)"
|
echo -en "Sensor Temperature(s)"
|
||||||
# [ "${1}" != "" ] && echo " Now / 1DayAVG / 7DayAVG" || echo
|
[ "${1}" != "" ] && echo " Now / 1DayAVG / 7DayAVG" || echo
|
||||||
DIVIDER . . 40
|
DIVIDER . . 40
|
||||||
for SENSORa in ${PW_SENSOR_ORD[@]}; do
|
for SENSORa in ${PW_SENSOR_ORD[@]}; do
|
||||||
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" != "esxi" ]; then
|
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" != "esxi" ]; then
|
||||||
@@ -663,7 +663,7 @@ SENDTEMP(){
|
|||||||
|
|
||||||
for SENSOR in "${SENSORS_CHECK[@]}"; do
|
for SENSOR in "${SENSORS_CHECK[@]}"; do
|
||||||
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "cpu" ]; then
|
if [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "cpu" ]; then
|
||||||
GAUGESH="'%"
|
GAUGESH="'%25"
|
||||||
elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "system" ] && [[ "${SENSOR}" = *"FAN"* ]]; then
|
elif [ "${PW_SENSOR_TYPE[${SENSORa}]}" == "system" ] && [[ "${SENSOR}" = *"FAN"* ]]; then
|
||||||
GAUGESH="'R"
|
GAUGESH="'R"
|
||||||
else
|
else
|
||||||
@@ -723,7 +723,7 @@ SENDTEMP(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
|
# c=0; spc=''; spc1=`expr ${cw} - ${#SENSOR}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
|
||||||
# ([[ "${SENSOR}" = *"-Probe"* ]] || [[ "${SENSOR}" = *"-Usage"* ]]) && spc=" " || spc=" "
|
([[ "${SENSOR}" = *"-Probe"* ]] || [[ "${SENSOR}" = *"-Usage"* ]]) && spc=" " || spc=" "
|
||||||
if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then
|
if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then
|
||||||
if [ "${SENSOR}" == "ServerRoomTH" ]; then
|
if [ "${SENSOR}" == "ServerRoomTH" ]; then
|
||||||
temp_f=`echo "scale=2; ${temp_c}*1.8+32+${PW_ServerRoomTH_Dev}" | bc`
|
temp_f=`echo "scale=2; ${temp_c}*1.8+32+${PW_ServerRoomTH_Dev}" | bc`
|
||||||
|
|||||||
Reference in New Issue
Block a user