Update power.inc.sh

This commit is contained in:
2024-01-13 10:49:23 -06:00
parent 4da76f7a9a
commit 37557f5dbd

View File

@@ -7,6 +7,7 @@ AVERAGEPOWER(){
total_amp=0
total_watt=0
while IFS=$'\t' read date amp watt ;do
echo "HERE: '${amp}'"
if [ "${amp}" != "" ] && [ "${amp}" != "null" ]; then
total_amp=$(bc <<< "scale=2; ${total_amp}+${amp}")
((logsfound_amp++))