MiB is indeed consistent with other places, but you should also change uint64_t GB_BYTES{1000000000}
to uint64_t GiB_BYTES{1073741824}
. But that impacts the settings screen. Probably better to leave this change for another PR.
I’m not sure what the goal of this change would be, and would definitely think it should be done as separately from this PR. ~The existing conversions in this PR as of f3108a01a03a937fc3d31f007caa69e1f95f182f look correct to me~, and I’d expect normal users to be more familiar with GB than GiB. Also if a user sees a GiB value and mistakenly interprets it as a GB value their node will use more storage than expected and maybe lead to problems.
EDIT: f3108a01a03a937fc3d31f007caa69e1f95f182f does actually have some buggy conversions I missed the first pass, see #17035#pullrequestreview-305331256, but this tangential to the point about wanting to stick to GB instead of switching to GiB.