The surrounding code checks for a limit of exactly 20,000 bytes and then hardcodes the limit as being "20 kB" in the locale string. When formatting, we were dividing by 1024 rather than 1000 and so when breaching the limit we could end up showing values that were smaller than 20 kB.
The surrounding code checks for a limit of exactly 20,000 bytes and then hardcodes the limit as being "20 kB" in the locale string. When formatting, we were dividing by 1024 rather than 1000 and so when breaching the limit we could end up showing values that were smaller than 20 kB.