From 4048865bf88088758715a65c960bea04519b7376 Mon Sep 17 00:00:00 2001 From: grbr404 <166065505+grbr404@users.noreply.github.com> Date: Fri, 6 Jun 2025 17:19:33 +0200 Subject: im sure tihs would allow us to display 18446744073709551615 with Q --- source/windowing/StarItemSlotWidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3