Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@red1452
Copy link

@red1452 red1452 commented Jun 6, 2025

Fix print KB in explain's output

ExplainPropertyInteger() is used to print int64 in explain's output. It requires
int64 variable to correctly convert number to string. At some places double is
used instead of int. Also at some places bytes were not convert to kilobytes,
but were printed with "KB". Patch adds converting double to int64 and bytes to
kilobytes. Variable total_memory_across_slices was removed, because it's value
is not changed and is always zero.

Test was not added, because values of usage memory in the explain's
output are ignored at all tests.

ExplainPropertyInteger() is used to print int64 in explain's output. It requires
int64 variable to correctly convert number to string. At some places double is
used instead of int. Also at some places bytes were not convert to kilobytes,
but were printed with "KB". Patch adds converting double to int64 and bytes to
kilobytes.

Test was not added, because values of usage memory in the explain's
output are ignored at all tests.
@red1452 red1452 merged commit cd18a99 into adb-7.2.0 Jun 11, 2025
5 checks passed
@red1452 red1452 deleted the ADBDEV-7395 branch June 11, 2025 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants