Rounds 900 bytes to 0 kilobytes

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
vassapup
Junior Member
Junior Member
Posts: 13
Joined: 2015-02-12, 21:50 UTC

Rounds 900 bytes to 0 kilobytes

Post by *vassapup »

I'm using SizeFooter=3 (which means rounding to tenth), but when file size is less 1 kb it is always displayed as 0 kb at status line.
IMHO it is better to display bytes in status line with this key, because 0kb is not informative because it doesn't tell whether the file is empty or not.
Or even round every file size less than 0.1 kb to 0.1 kb (in order to indicate non-empty file).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is not a bug, it's just a question of rounding. Currently TC rounds down (truncates) all values.

Alternatively, TC could round up/down, e.g. 0..511 bytes=0k, 512-1535 bytes=1k etc.

Or it could always round UP, as the Explorer does.

But this isn't defined anywhere - all 3 would be legit. I think that maybe I could add an option so the user can choose which method should be used. But unfortunately there isn't enough time now to add this to TC 9.10.
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

[mod]Moved to the Suggestions forum.

Hacker (Moderator)[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

The requested behavior can be achieved by using my content plugin DirSizeCalc.
Post Reply