Update power.inc.sh
This commit is contained in:
@@ -1465,7 +1465,7 @@ POWERLOGGER_SERVICE(){
|
||||
KYLE_WATT=`echo "scale=2; ${UPS_VOLTOUT}*${UPS_AMPSOUT}" | tr -d $'\r' | bc`
|
||||
|
||||
|
||||
if [ "${UPS_AMPSOUT}" != "" ]; then
|
||||
if [ "${KYLE_AMP}" != "" ]; then
|
||||
|
||||
QRY="INSERT INTO power_data (sensorid, date, volt, amp, watt) VALUES ('${PW_POWERSENSOR_ID['KP-Power']}',CONVERT_TZ('${LogDataTime}', 'America/Chicago', 'UTC'),'${KYLE_VOLT}','${KYLE_AMP}','${KYLE_WATT}')"
|
||||
${mysql_conn} -e "USE servermonitor; ${QRY}"
|
||||
|
||||
Reference in New Issue
Block a user