From e79b3ffb28f2f4b5651e2cb57cfb566803bc5daa Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 1 Jun 2024 13:13:13 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 809a6078..b6a9336c 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -915,10 +915,10 @@ fi echo "${RPMn}" RPM_tot=$(expr ${RPM_tot} + ${RPMn}) done - echo "TOTs: ${RPM_tot} / ${#RPMs}" - RPM=$(bc <<< "scale=0; ${RPM_tot}/${#RPMs}") + echo "TOTs: ${RPM_tot} / ${#RPMs[@]}" + RPM=$(bc <<< "scale=0; ${RPM_tot}/${#RPMs[@]}") echo "AVG1: ${RPM}" - RPM=$(ROUND_NUMBER $(bc <<< "scale=0; ${RPM_tot}/${#RPMs}")) + RPM=$(ROUND_NUMBER $(bc <<< "scale=0; ${RPM_tot}/${#RPMs[@]}")) echo "AVG2: ${RPM}"