Page 1 of 1

Rounds 900 bytes to 0 kilobytes

Posted: 2017-10-02, 00:50 UTC
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).

Posted: 2017-10-02, 08:29 UTC
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.

Posted: 2017-10-02, 11:40 UTC
by Hacker
[mod]Moved to the Suggestions forum.

Hacker (Moderator)[/mod]

Posted: 2017-10-02, 17:05 UTC
by Lefteous
The requested behavior can be achieved by using my content plugin DirSizeCalc.