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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/windowing/StarItemSlotWidget.cpp2
1 files changed, 1 insertions, 1 deletions
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);