Update power.inc.sh

This commit is contained in:
2024-01-13 10:51:10 -06:00
parent 36695e9323
commit 1e11f709c0

View File

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