Update temp.inc.sh
This commit is contained in:
@@ -713,7 +713,8 @@ SENDTEMP(){
|
|||||||
fi
|
fi
|
||||||
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=" "
|
||||||
if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then
|
if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then
|
||||||
temp_f=`echo "scale=2; ${temp_c}*1.8 + 32" | bc`
|
temp_f=`echo "scale=2; ${temp_c}*1.8 + 32" | bc`
|
||||||
[ "${1}" != "" ] && echo -e "${SENSOR}${spc}${temp_f}'F / ${average1}'F / ${average7}'F" || echo -e "${SENSOR}${spc}${temp_f}'F"
|
[ "${1}" != "" ] && echo -e "${SENSOR}${spc}${temp_f}'F / ${average1}'F / ${average7}'F" || echo -e "${SENSOR}${spc}${temp_f}'F"
|
||||||
|
|||||||
Reference in New Issue
Block a user