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

summaryrefslogtreecommitdiff
path: root/source/windowing
diff options
context:
space:
mode:
authorgrbr404 <166065505+grbr404@users.noreply.github.com>2025-06-06 17:19:33 +0200
committerGitHub <noreply@github.com>2025-06-06 17:19:33 +0200
commit4048865bf88088758715a65c960bea04519b7376 (patch)
tree2ab6ad73d8b9f0c92cf65e6a7bc2e46136042986 /source/windowing
parent18ada37e4cc10e783c5b810404e85f3804275733 (diff)
im sure tihs would allow us to display 18446744073709551615 with Q
Diffstat (limited to 'source/windowing')
-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) {