diff --git a/powerwall.sh b/powerwall.sh index e6308237..f33482d0 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -915,7 +915,7 @@ fi echo "${RPMn}" RPM_tot=$(expr ${RPM_tot} + ${RPMn}) done - RPM=$(ROUND_NUMBER $(bc <<< "scale=0; ${RPM_tot}/${#RPMs}")) + RPM=$(ROUND_NUMBER $(bc -l <<< "scale=0; ${RPM_tot}/${#RPMs}")) echo "AVG: ${RPM}"