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 ))
|
||||
done
|
||||
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 ))
|
||||
done
|
||||
fi
|
||||
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 ))
|
||||
done
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue