diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-06-07 03:54:41 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2025-06-07 03:54:41 +1000 |
commit | 302506143cb721211d5f85bc78909660d8335074 (patch) | |
tree | d87140fdb1c82ed205a8e06c772618dc3e1b062f /source/windowing/StarItemSlotWidget.cpp | |
parent | 664cdc7fe5b454d3a53804a73dc6ca63341ce3b5 (diff) |
Update StarItemSlotWidget.cpp
Diffstat (limited to 'source/windowing/StarItemSlotWidget.cpp')
-rw-r--r-- | source/windowing/StarItemSlotWidget.cpp | 2 |
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); |