diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-06-07 03:41:24 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-07 03:41:24 +1000 |
commit | 664cdc7fe5b454d3a53804a73dc6ca63341ce3b5 (patch) | |
tree | 2ab6ad73d8b9f0c92cf65e6a7bc2e46136042986 /source/windowing | |
parent | 18ada37e4cc10e783c5b810404e85f3804275733 (diff) | |
parent | 4048865bf88088758715a65c960bea04519b7376 (diff) |
Merge pull request #261 from grbr404/item-count-chainges
I'm sure this would allow us to display 18446744073709551615 with Q as 18.4Q, which is technically not impossible to attain.
Diffstat (limited to 'source/windowing')
-rw-r--r-- | source/windowing/StarItemSlotWidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/windowing/StarItemSlotWidget.cpp b/source/windowing/StarItemSlotWidget.cpp index 82407be..666cbd0 100644 --- a/source/windowing/StarItemSlotWidget.cpp +++ b/source/windowing/StarItemSlotWidget.cpp @@ -17,7 +17,10 @@ static String formatShortSize(uint64_t n) { uint64_t divisor = 1000ull; char suffix = 'k'; - if (n >= 1000000000000000ull) { + if (n >= 1000000000000000000ull) { + divisor = 1000000000000000000ull; + suffix = 'Q'; + } else if (n >= 1000000000000000ull) { divisor = 1000000000000000ull; suffix = 'q'; } else if (n >= 1000000000000ull) { |