Fix shellcheck SC2013 warnings in byte-counting loops
This commit is contained in:
parent
4d800e21b4
commit
b8c3c55574
1 changed files with 4 additions and 2 deletions
|
|
@ -367,12 +367,14 @@ build_trace_content() {
|
||||||
total=$(( total + bytes ))
|
total=$(( total + bytes ))
|
||||||
done
|
done
|
||||||
elif [[ -f $LOGFILE_STAGE1 ]]; then
|
elif [[ -f $LOGFILE_STAGE1 ]]; then
|
||||||
for bytes in $(sed -Ene 's/(^|.* )sent ([0-9]+) bytes received ([0-9]+) bytes.*/\3/p' "$LOGFILE_STAGE1"); do
|
all_bytes=$(sed -Ene 's/(^|.* )sent ([0-9]+) bytes received ([0-9]+) bytes.*/\3/p' "$LOGFILE_STAGE1")
|
||||||
|
for bytes in $all_bytes; do
|
||||||
total=$(( total + bytes ))
|
total=$(( total + bytes ))
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if [[ -f $LOGFILE_STAGE2 ]]; then
|
if [[ -f $LOGFILE_STAGE2 ]]; then
|
||||||
for bytes in $(sed -Ene 's/(^|.* )sent ([0-9]+) bytes received ([0-9]+) bytes.*/\3/p' "$LOGFILE_STAGE2"); do
|
all_bytes=$(sed -Ene 's/(^|.* )sent ([0-9]+) bytes received ([0-9]+) bytes.*/\3/p' "$LOGFILE_STAGE2")
|
||||||
|
for bytes in $all_bytes; do
|
||||||
total=$(( total + bytes ))
|
total=$(( total + bytes ))
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue