diff options
author | Dasky <32983009+daskygit@users.noreply.github.com> | 2022-06-23 02:23:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 11:23:13 +1000 |
commit | aaaf3ff66a82757f73e80a1bb67ebaacc4a7dfa6 (patch) | |
tree | b10b26f30e2b3c2b992a9a10112321bfe667e18e /util | |
parent | 666cba5c2ea839ce486a06f84ef3edc0f674b681 (diff) |
Fix 0 delta results in size_regression.sh (#17457)
Diffstat (limited to 'util')
-rwxr-xr-x | util/size_regression.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |