From aaaf3ff66a82757f73e80a1bb67ebaacc4a7dfa6 Mon Sep 17 00:00:00 2001 From: Dasky <32983009+daskygit@users.noreply.github.com> Date: Thu, 23 Jun 2022 02:23:13 +0100 Subject: Fix 0 delta results in size_regression.sh (#17457) --- util/size_regression.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/size_regression.sh b/util/size_regression.sh index d474d8d0d5..41ad5b68a3 100755 --- a/util/size_regression.sh +++ b/util/size_regression.sh @@ -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 -- cgit v1.2.1