Update temp.inc.sh
This commit is contained in:
@@ -76,7 +76,7 @@ CHECKTEMP(){
|
||||
echo -en "${idsCL[LightCyan]} [FanSpeed=$(cat ${PW_TMPFOLDER}/.fanspeed.${SENSOR}.${cdt})'% "
|
||||
if [ "${avgdays}" != "noavg" ]; then
|
||||
echo -en "${idsCL[Yellow]}Calculating ${avgdays} Day average ... ${idsCL[LightCyan]}]"
|
||||
fan_average=$(AVERAGETEMP ${SENSOR} ${avgdays} FanSpeed)
|
||||
fan_average=$(AVERAGETEMP ${PW_SENSOR_ID[${SENSOR}]} ${avgdays} FanSpeed)
|
||||
echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${SENSOR} Host Sensors ${idsST[Reset]}${idsCL[White]}[${vHOSTiDRACIP}]"
|
||||
echo -en "${idsCL[LightCyan]} [FanSpeed=$(cat ${PW_TMPFOLDER}/.fanspeed.${SENSOR}.${cdt})'% AVG=${fan_average}'%)]${idsCL[Default]}"
|
||||
|
||||
@@ -308,7 +308,6 @@ AVERAGETEMP(){
|
||||
sensorid=${1}
|
||||
logsfound=0;
|
||||
if [ "${3}" != "" ]; then
|
||||
echo -e "\nHERE: WHERE BINARY name='${3}' AND sensorid='${sensorid}'\n"
|
||||
entityid=($(${mysql_conn} -e "SELECT id FROM servermonitor.entities WHERE BINARY name='${3}' AND sensorid='${sensorid}'"))
|
||||
entityid=${entityid[1]}
|
||||
WHERE="sensorid=${sensorid} AND entity=${entityid}"
|
||||
|
||||
Reference in New Issue
Block a user