Round filesizes up (like Explorer)
|Reported by:||soepy||Owned by:|
|Keywords:||Cc:||soepy, elsapo, Tim Kosse|
|Component version:||Operating system type:|
|Operating system version:|
This patch rounds the filesizes displayed in the list
controls up, like Windows Explorer does. Now, only an
empty file will show up as "0 bytes". Done for both
local and remote file lists.
Also, the automatic filesize formatting was changed a
bit. It now limits the number of digits to 3, so a file
with 1000 bytes will show up as "1 KB".
The original behaviour would say "1023 bytes" but for a
file with 1024 it would say "1 KB", eventhough the
length of the strings would be the same.