Update temp.inc.sh
This commit is contained in:
@@ -128,7 +128,7 @@ CHECKTEMP(){
|
||||
reading="${lclr}${lmd}${spct}${temp_f_disp}${GAUGESH}"
|
||||
echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR_DESC}${idsST[Reset]}${spc}${idsCL[Default]}: ${reading} "
|
||||
|
||||
if [ "${avgdays}" = "noavgxx" ] && [[ "${SENSOR}" != *"FAN"* ]]; then
|
||||
if [ "${avgdays}" = "noavg" ] && [[ "${SENSOR}" != *"FAN"* ]]; then
|
||||
for R in ${PW_TEMPIND_RANGE[@]}; do
|
||||
OLD_temp_f=($(${mysql_conn} -e "SELECT temp FROM servermonitor.sensor_data WHERE sensorid='${PW_SENSOR_ID[${SENSOR}]}' AND date >= DATE_SUB(NOW(), INTERVAL ${R} MINUTE) AND date <= DATE_SUB(NOW(), INTERVAL $(expr ${R} - 7) MINUTE) ORDER BY date ASC LIMIT 1"))
|
||||
if [ "${OLD_temp_f[1]}" != "" ]; then
|
||||
@@ -233,7 +233,6 @@ CHECKTEMP(){
|
||||
tmp="${spca}${average_disp}${GAUGESH}"
|
||||
else
|
||||
fws=$(expr 20 - $(expr ${#PW_TEMPIND_RANGE[@]} \* 2))
|
||||
fws=40
|
||||
tmp="${spct}${temp_f_disp}${GAUGESH}"
|
||||
fi
|
||||
c=0; spc=''; spc1=`expr ${fws} - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; ((c++)); done
|
||||
|
||||
Reference in New Issue
Block a user