Opened 14 years ago

Last modified 13 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)

round_filesizes_up.zip (32.7 KB) - added by soepy 14 years ago.
New source files (sorry, no diff)
round_filesizes_up.patch (2.5 KB) - added by soepy 14 years ago.
real cvs diff -u

Download all attachments as: .zip

Change History (5)

Changed 14 years ago by soepy

Attachment: round_filesizes_up.zip added

New source files (sorry, no diff)

Changed 14 years ago by soepy

Attachment: round_filesizes_up.patch added

real cvs diff -u

comment:1 Changed 14 years ago by soepy

real cvs diff -u

comment:2 Changed 14 years ago by elsapo

This would be great!

comment:3 Changed 13 years ago by Tim Kosse

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.