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:


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) (32.7 KB ) - added by soepy 19 years ago.
New source files (sorry, no diff)
round_filesizes_up.patch (2.5 KB ) - added by soepy 19 years ago.
real cvs diff -u

Download all attachments as: .zip

Change History (5)

by soepy, 19 years ago

Attachment: added

New source files (sorry, no diff)

by soepy, 19 years ago

Attachment: round_filesizes_up.patch added

real cvs diff -u

comment:1 by soepy, 19 years ago

real cvs diff -u

comment:2 by elsapo, 18 years ago

This would be great!

comment:3 by Tim Kosse, 18 years ago

Partially applied. Rounding part OK. But I don't agree on
the transition from 999 bytes -> 1 KB.

Note: See TracTickets for help on using tickets.