Update temp.inc.sh
This commit is contained in:
@@ -1354,6 +1354,8 @@ Previous Temp: ${last_temp}${GAUGESH}"
|
||||
entityid=${entityid[1]}
|
||||
|
||||
QRY="USE servermonitor; INSERT INTO sensor_data (\`sensorid\`, \`entity\`, \`date\`, \`speed\`) VALUES ('${PW_SENSOR_ID[${SENSORa}]}','${entityid}','$(date +'%Y-%m-%d %H:%M:%S')','${fanrpm}')"
|
||||
${mysql_conn} -e "${QRY}"
|
||||
echo "${fanrpm}" >| ${PW_TMPFOLDER}/.lastinsert/${SENSORa}-${vHOST_FAN// /_}
|
||||
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user