From a7480239cbdf05c755561a26a3db906e49f3ae87 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 12 Aug 2025 21:08:19 -0500 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index b6ba4ae2..4806677e 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -1461,8 +1461,8 @@ POWERLOGGER_SERVICE(){ ## APC KYLE_VOLT=$(snmpwalk -t 1 -r 0 -v 1 -c public ${PW_KP_UPS_IP} .1.3.6.1.2.1.33.1.4.4.1.2.1 | sed 's/.*: //') KYLE_AMP=$(snmpwalk -t 1 -r 0 -v 1 -c public ${PW_KP_UPS_IP} iso.3.6.1.2.1.33.1.4.4.1.3.1 | sed 's/.*: //')\ - KYLE_AMP=`echo "scale=2; ${UPS_AMPSOUT}/10" | tr -d $'\r' | bc` - KYLE_WATT=`echo "scale=2; ${UPS_VOLTOUT}*${UPS_AMPSOUT}" | tr -d $'\r' | bc` + KYLE_AMP=`echo "scale=2; ${KYLE_AMP}/10" | tr -d $'\r' | bc` + KYLE_WATT=`echo "scale=2; ${KYLE_VOLT}*${KYLE_AMP}" | tr -d $'\r' | bc` if [ "${KYLE_AMP}" != "" ]; then