Skip to content

Commit

Permalink
Fix 0 delta results in size_regression.sh (#17457)
Browse files Browse the repository at this point in the history
  • Loading branch information
daskygit authored Jun 23, 2022
1 parent 666cba5 commit aaaf3ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/size_regression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function build_executor() {

if [[ -n "$last_line" ]] ; then
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"
fi
fi
Expand Down

0 comments on commit aaaf3ff

Please sign in to comment.