Fix 0 delta results in size_regression.sh (#17457)
This commit is contained in:
parent
666cba5c2e
commit
aaaf3ff66a
@ -76,7 +76,7 @@ function build_executor() {
|
|||||||
|
|
||||||
if [[ -n "$last_line" ]] ; then
|
if [[ -n "$last_line" ]] ; then
|
||||||
size_delta=$(( $last_size - $file_size ))
|
size_delta=$(( $last_size - $file_size ))
|
||||||
if { [[ -n "${skip_zero:-}" ]] && [[ $size_delta -ne 0 ]] ; } || [[ $file_size -eq 0 ]] ; then
|
if { [[ -n "${skip_zero:-}" ]] && [[ $size_delta -ne 0 ]] ; } || [[ -z "${skip_zero:-}" ]] || [[ $file_size -eq 0 ]] ; then
|
||||||
printf "Size: %8d, delta: %+6d -- %s\n" "$last_size" "$size_delta" "$last_line"
|
printf "Size: %8d, delta: %+6d -- %s\n" "$last_size" "$size_delta" "$last_line"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user