Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-06-07 03:41:24 +1000
committerGitHub <noreply@github.com>2025-06-07 03:41:24 +1000
commit664cdc7fe5b454d3a53804a73dc6ca63341ce3b5 (patch)
tree2ab6ad73d8b9f0c92cf65e6a7bc2e46136042986
parent18ada37e4cc10e783c5b810404e85f3804275733 (diff)
parent4048865bf88088758715a65c960bea04519b7376 (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.
-rw-r--r--source/windowing/StarItemSlotWidget.cpp5
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) {