Opened 19 years ago
Last modified 18 years ago
#1487 closed Patch
Round filesizes up (like Explorer)
Reported by: | soepy | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | FileZilla Client |
Keywords: | Cc: | soepy, elsapo, Tim Kosse | |
Component version: | Operating system type: | ||
Operating system version: |
Description
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.
Attachments (2)
Change History (5)
by , 19 years ago
Attachment: | round_filesizes_up.zip added |
---|
comment:3 by , 18 years ago
Partially applied. Rounding part OK. But I don't agree on
the transition from 999 bytes -> 1 KB.
New source files (sorry, no diff)