mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-06 04:14:15 +00:00
formatBytes moved to the next unit only when the value reached 1024, but toFixed(1) already rounds 1023.95 and up to "1024.0". So 1,048,575 bytes rendered as "1024.0 KB" and 1 GiB - 1 as "1024.0 MB". Move to the next unit from 1023.95 above bytes, the same approach formatTokens takes for "1000k". Bytes still switch to KB at 1024.