From 42769991cc6b062ffc497f60476a23faf60f5714 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 24 Jun 2025 19:12:06 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index fb3b2231..249a48eb 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -1051,7 +1051,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ if [ "${SENSORa}" == "Powerwall-CPU-Usage" ]; then temp_c=$(awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1) "%"; }' <(grep 'cpu ' /proc/stat) <(sleep 1;grep 'cpu ' /proc/stat) | sed -e 's/%//g') else - temp_c=$(${SSHCMD} root@${PW_REMOTE_SENSORS[${SENSORa}]} "/opt/idssys/defaults/get-data.sh cpu-usage") + temp_c=$(${SSHCMD} root@${PW_REMOTE_SENSORS[${SENSORa}]} "/opt/idssys/defaults/get-data.sh cpu-usage" | tr -d $'\r') fi temp_h=''