From 302506143cb721211d5f85bc78909660d8335074 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sat, 7 Jun 2025 03:54:41 +1000 Subject: Update StarItemSlotWidget.cpp --- source/windowing/StarItemSlotWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/windowing/StarItemSlotWidget.cpp b/source/windowing/StarItemSlotWidget.cpp index 666cbd0..c060e45 100644 --- a/source/windowing/StarItemSlotWidget.cpp +++ b/source/windowing/StarItemSlotWidget.cpp @@ -39,7 +39,7 @@ static String formatShortSize(uint64_t n) { return strf("{}{:c}", whole, suffix); uint64_t remainder = n - (whole * divisor); - uint64_t frac = (remainder * 1000) / divisor; + uint64_t frac = (remainder / (divisor / 1000)); if (frac == 0) return strf("{}{:c}", whole, suffix); -- cgit v1.2.3